关于构建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.jarPlease ensure you are using JDK 1.4 or above andnot a JRE (the com.sun.tools.javac.Main class is required).In most cases you can change the location of your Javainstallation by setting the JAVA_HOME environment variable.
window-->preferences-->java-->Installed JREs:添加jdk下的jre,也就是JAVA_HOME下的jre,然后删除其他的jre就可以了