On Fri, Feb 21, 2014 at 10:39 AM, Carsten Ziegeler <[email protected]> wrote:
> ...I've committed the change - so let's see for whom it breaks now...

Me ;-)

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on
project org.apache.sling.engine: An Ant BuildException has occured:
Unable to find a javac compiler;

[ERROR] com.sun.tools.javac.Main is not on the classpath.

[ERROR] Perhaps JAVA_HOME does not point to the JDK.

[ERROR] It is currently set to
"/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre"

But at the shell I have

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home

And also

$ ls $JAVA_HOME/lib/tools.jar
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/tools.jar

So it looks like it's mvn or ant which reset JAVA_HOME to the jre, not
sure what's happening.

If I use my JDK 1.6, which doesn't have a $JAVA_HOME/jre folder, the
build works.

-Bertrand

Reply via email to