This is what I get when mvnexecuted from CruiseControl:
Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
At the same time, starting from the command line gives the correct result. Why mvnis included in this tools.jar? Why is he ignoring mine JAVA_HOME? And how can I fix this?
I do not know what the values JAVA_HOME/PATHare when mvnstarting from CC. I would really like to receive this information, but I do not know how to do it. CC itself starts from the user ccand envif this user gives me (this is CentOS 5.4):
JAVA_HOME=/usr/java/default
PATH=/usr/local/maven/bin:/usr/local/bin:/bin:/usr/bin:/home/cc/bin
source
share