eclipse weixin_guide运行maven install出错 急急急

[ERROR] Unable to locate the Javac Compiler in:

  C:\Program Files\Java\jre1.8.0_131\..\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.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project weixin_guide: Compilation failure

[ERROR] Unable to locate the Javac Compiler in:

[ERROR]   C:\Program Files\Java\jre1.8.0_131\..\lib\tools.jar

[ERROR] Please ensure you are using JDK 1.4 or above and

[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).

[ERROR] In most cases you can change the location of your Java

[ERROR] installation by setting the JAVA_HOME environment variable.

[ERROR] -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



评论区

loulley

2017-04-25 18:10

tools.jar 这个jar问题

Javen

2017-04-28 18:44

JDK建议使用1.7 配置一下Eclipse的JRE @雷仔仔

热门反馈

扫码入社