I am trying to use sun-jdk but I am having problem with enviroment setting. When I installed and rebooted (for sure) sun-jdk, theres was no JAVA_HOME, JAVAC stuff set. In /etc/env.d i found another directory java and in it 20sun-jdk-1.4.0. I copied that file up one directory and rerun env-update. Upss everything in /etc/profile.env seems to be ok. So I did reboot and it was not set as I expect. JAVAC is /bin/javac instead of /opt/sun.../bin/javac.
I tried manualy env-update again. OK, until next reboot.
Can anybody help me? I cannot compile PHP with USE java.
I ran into the same problem and even after i did the whole
java-config --list-available-vms
java-config --set-system-vm=blabh blah.... I ran into the same problem with PHP install. I tried this with blackdown and suns java and still didn't work. When I do a emerge php it always complaints about java vm libraries not found or something similar to that.
Ok this is extremely strange.... last night i did the following:
t-rex root # java-config --list-available-vms
[blackdown-jdk-1.3.1] Blackdown JDK 1.3.1 (/etc/env.d/java/20blackdown-jdk-1.3.1)
[blackdown-jre-1.3.1] Blackdown JRE 1.3.1 (/etc/env.d/java/20blackdown-jre-1.3.1)
t-rex root # java-config --help
Usage: java-config [OPTIONS] [LIBRARIES]
Options:
[--javac]
[--java]
[--jar]
[--jdk-home]
[--jre-home]
[--java-version]
[--classpath[=package1,package2,...]]
[--full-classpath=package1,package2,...]
[--exec=filename]
[--list-available-packages]
[--list-available-vms]
[--set-system-vm=<vm-id>]
[--set-user-vm=<vm-id>]
[--set-system-classpath=package1,package2,...]
[--set-user-classpath=package1,package2,...]
Using /opt/blackdown-jdk-1.3.1
t-rex root #
As you can see my java-vm is set to blackdown-jdk. Last night I tried to emerge php and it didn't work. But today i did:
emerge rsync
emerge php
and looks like its actually compiling.....the gentoo guys must have updated the php package....thanks dudes!!!!
in /etc/env.d I created this file I (used the oen from java directory:
20sun-jdk-1.4.0:
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Karl Trygve Kalleberg
# Maintainer: Tools Team <tools@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.4.0,v 1.3 200
2/04/09 22:13:41 karltk Exp
I had to manualy replace $JDK_HOME in PATH ROOTPATH and JAVAC. Then I ran env-update, rebooted(maye be not necessary). Since thaht time it is working for me. But this is some black work, so I think there has to be some other better way to do it.
however if you want to use some fancy program that runs java/javac from within it you might have problems, im not sure though. i use jedit with its console plugin and its dandy as can be.
Searched the web for zerogeny.
Results 1 - 1 of 1. Search took 0.05 seconds