• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

maven javac compiler error

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic