0
点赞
收藏
分享

微信扫一扫

.[ERROR] Unable to locate the Javac Compiler in

其生 2022-08-09 阅读 106


Unable to locate the Javac Compiler in:

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

The reason is that m2eclipse plugin want to find the tools.jar in JDK_HOME/lib folder. That means you must install JDK to execute maven in Eclipse. 

In Eclipse, you can configure the JRE included in JDK directory.

Then, configure JRE of maven Run Configuration as workspace default JRE. 




举报

相关推荐

0 条评论