Platform: Intel PII, debian sarge testing/unstable
Blackdown j2sdk 1.4.0.99beta-1,
ant 1.5.4-3,
jde 2.3.2-3,
emacs20 20.7-13.1
Java compilation fails in ant, unless I've set the JAVA_HOME in the
environment before starting emacs. Is there a way to make it pick up
the classpath to the current JDK in the jde-jdk-registry setting?
>From looking at the jde-ant.el source, I thought setting
jde-ant-use-global-classpath to t would help, but it didn't.
Any hints and tips appreciated!
Thanx!
- Steinar
--8<-- Details follows --8<---
This is the customized jde-jdk-registry setting from ~/.emacs:
'(jde-jdk-registry (quote (("1.4.0.99beta-1" . "/usr/lib/j2se/1.4")))))
This is the prj.el file for the project:
(jde-project-file-version "1.0")
(jde-set-variables
'(jde-ant-enable-find t)
'(jde-build-function (quote (jde-ant-build)))
'(jde-ant-use-global-classpath t))
This is the output from ant:
cd /home/sb/cvs/webapps/shoppe/src/model/
ant -Dant.home= -buildfile "/home/sb/cvs/webapps/shoppe/build.xml" -emacs
Buildfile: /home/sb/cvs/webapps/shoppe/build.xml
prepare:
compile:
Compiling 1 source file to
/home/sb/cvs/webapps/shoppe/${home}/webapps/shoppe/WEB-INF/classes
BUILD FAILED
file:/home/sb/cvs/webapps/shoppe/build.xml:77: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Total time: 16 seconds
Compilation exited abnormally with code 1 at Wed Dec 31 14:22:28