-
Bug
-
Resolution: Incomplete
-
Blocker
-
None
-
Platform: Sun, OS: Linux
I have a maven project that uses the maven-antrun-plugin to test some samples
that come with a build.xml file. It all works fine from command line.
In hudson, it fails, claiming that it can't find the compiler, due to a bad
JAVA_HOME.
A moderate level of googling failed to reveal a solution to me, and it seems to
me that from first principles what works at command level should also work in
hudson.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
/home/hudson/jobs/etrog/workspace/etrog/lucene2.2/target/rlp-bl-lucene2.2-0.9-SNAPSHOT-all.dir/rlp-bl-lucene2.2-0.9-SNAPSHOT/samples/simple/build.xml:19:
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
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 49 seconds
[INFO] Finished at: Fri Jun 26 09:37:04 EDT 2009
[INFO] Final Memory: 50M/81M