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

后端 未结 30 1994
长情又很酷
长情又很酷 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:02

    It sounds like Maven is using the JRE, not the JDK. Perhaps you installed Maven before installing the JDK?

    Check the settings files. There are three in total, system, user, and project. It's most likely in the installation configuration ($M2_HOME/conf/settings.xml) or, possibly, the per-user configuration (${user.dir}/.m2/settings.xml).

提交回复
热议问题