Maven build failed: “Unable to locate the Javac Compiler in: jre or jdk issue”

后端 未结 30 2002
长情又很酷
长情又很酷 2020-11-30 20:33

I have my JAVA_HOME set to:

C:\\Program Files (x86)\\Java\\jdk1.6.0_18

After I run maven ins

30条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 21:18

    You could try updating the JDK Eclipse is using, as follows:

    Add and set the JRE in menu WindowPreferences...JavaInstalled JREs:

    JRE type: Standard VM JRE
    Name: jdk1.6.0_18
    JRE home directory: C:\Program Files (x86)\Java\jdk1.6.0_18
    

    If this is not the case, it's possible that the brackets and spaces in the JAVA_HOME path are causing issues. Try copying your JDK to a different location and updating your JAVA_HOME.

提交回复
热议问题