Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Maven build issue due to -jre or jdk

    • 0
    • 1
    • 1
    • 2
    • 0
    • 0
    • 0
    • 0
    • 575
    Comment on it

    Error after running Maven install

    Error: Unable to locate the Javac Compiler in: C:\Program Files (x86)\Java\jre6..\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.

    Solution

    Add and set the JRE in Window->Preferences...->Java->Installed JREs:

    JRE type: Standard VM JRE 
    Name: jdk1.6.0_18
    JRE home directory: C:\Program Files (x86)\Java\jdk1.6.0_18
    Please ensure you are using JDK 1.4 or above and not a JRE

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: