读书人

关于构建maven项目出现Unable to lo

发布时间: 2014-01-26 17:50:50 作者: rapoo

关于构建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就可以了

读书人网 >软件架构设计

热点推荐