You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by AllLangsDevel <ja...@gmail.com> on 2010/11/11 15:56:14 UTC
Problem with Maven and JDK
So I have set up the JAVA home and I even set JRE_HOME think that may help
but I am getting...
mvn clean test
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
Unable to locate the Javac Compiler in:
/usr/jdk/instances/jdk1.6.0/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.
Of course tools.jar is not at this location but I don't even know why it
needs it, isn't that just for J2EE?
Thanks
Jackie
--
View this message in context: http://maven.40175.n5.nabble.com/Problem-with-Maven-and-JDK-tp3260391p3260391.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem with Maven and JDK
Posted by AllLangsDevel <ja...@gmail.com>.
Nevermind it was a problem with my JDK install DOPE!
--
View this message in context: http://maven.40175.n5.nabble.com/Problem-with-Maven-and-JDK-tp3260391p3260418.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem with Maven and JDK
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/11 AllLangsDevel <ja...@gmail.com>:
> Of course tools.jar is not at this location but I don't even know why it
> needs it, isn't that just for J2EE?
tools.jar contains, among other things, the compiler.
So yes, you badly need it.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org