关于构建maven项目,出现Unable to locate the Javac Compiler的解决办法

关于构建maven项目,出现Unable to locate the Javac Compiler的解决办法:

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.

window-->preferences-->java-->Installed JREs:添加jdk下的jre,也就是JAVA_HOME下的jre,然后删除其他的jre就可以了

猜你喜欢

转载自jiang-shang.iteye.com/blog/2009470