This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes maven javac compiler error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven javac compiler error" Watch "maven javac compiler error" New topic
Author

maven javac compiler error

nek thomas
Greenhorn

Joined: Oct 18, 2008
Posts: 27
I am having issues with Maven in eclipse. When I try to run mvn install command it gives the following error

unable to locate javac compiler in C:\Program Files\ Java\Jre6\..\lib\tools.jar

I have tried toggling with the installed java for eclipse to jdk...

Please let me know if anyone has faced such issue with maven build in eclipse

Karl Heinz Marbaise
Greenhorn

Joined: Aug 12, 2007
Posts: 19
Hi,

nek thomas wrote:unable to locate javac compiler in C:\Program Files\ Java\Jre6\..\lib\tools.jar

I have tried toggling with the installed java for eclipse to jdk...


Are you using the embedded Maven or do you have configured to use an external Maven ? Which Version of Eclipse and Maven are you using?

Have you set JAVA_HOME to JDK not JRE...?

Kind regards
Karl Heinz Marbaise


Software Configuration Management (Subversion, CVS, SVK etc.) http://www.skmwiki.de/
Subversion Repository Search Engine http://www.supose.org/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maven javac compiler error
 
Similar Threads
save export settings in eclipse?
Exam prep: ide or command line
Maven archetypes broken?
Enable assertion at complie time
Eclipse Maven project: Unable to locate the Javac Compiler