Roger's woze

January 27, 2012

ubuntu maven mvn java setup woe

Filed under: Uncategorized — rogerdpack @ 8:15 am

————————————————————
[INFO] Compilation failure
Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-6-openjdk/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.

 

meant install the jdk (apt) then

for me

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress