I seem to be having a problem with packages configured to look at the JAVA_HOME environment variable. I've emerged blackdown-jdk and have put JAVA_HOME everywhere I can think of, yet I get the following problems:

tower root # export JAVA_HOME=/opt/blackdown-jdk-1.4.1
tower root # emerge ant
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ant-1.5.3-r5 to /
>>> md5 src_uri ;-) apache-ant-1.5.3-1-src.tar.bz2
>>> Unpacking source...
>>> Unpacking apache-ant-1.5.3-1-src.tar.bz2 to /var/tmp/portage/ant-1.5.3-r5/work
* Applying build.sh-exit-fix.patch.gz... [ ok ] * Applying 1_6_backport-jdk142.patch.gz... [ ok ]>>> Source unpacked.
Warning: JAVA_HOME environment variable not set.
If build fails because sun.* classes could not be found
you will need to set the JAVA_HOME environment variable
to the installation directory of java.
Error: JAVA_HOME is not defined correctly.
We cannot execute java
Bootstrap FAILED


!!! ERROR: dev-java/ant-1.5.3-r5 failed.
!!! Function src_compile, Line 79, Exitcode 1
!!! (no error message)


I also have JAVA_HOME defined in the following:


tower root # grep JAVA /etc/*
/etc/csh.env:setenv JAVA_HOME '/opt/blackdown-jre-1.4.1'
/etc/make.conf:JAVA_HOME=/opt/blackdown-jdk-1.4.1/
/etc/profile.env:export JAVA_HOME='/opt/blackdown-jre-1.4.1'


Also, having emerged Tomcat, I get similar errors:


tower root # /etc/init.d/tomcat start
* Starting Tomcat...
/opt/tomcat/bin/catalina.sh: line 63: /etc/conf.d/tomcat: Permission denied [ !! ]


tower root # chmod ugo+r /etc/conf.d/tomcat
tower root # /etc/init.d/tomcat start
* Starting Tomcat...
The JAVA_HOME environment variable is not defined correctly!
This environment variable is needed to run this program.
See the /etc/conf.d/tomcat file for details. [ !! ]



Any ideas? Any place I was supposed to stick JAVA_HOME that I missed? I'm sure I could eventually hack the scripts to do it correctly, but I'd rather do it the "right" way so i can easily upgrade via portage...


Justin


-- [EMAIL PROTECTED] mailing list



Reply via email to