如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar

Created by Jerry Wang, last modified on Sep 01, 2015

Unable to locate the Javac Compiler in: C:\Program Files\Java\jre7…\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.


修改之前的Installed JREs 配置:如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar手动添加一个新的JRE home, location为JDK所属的JRE directory:如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar选中新添加的JDK:如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar在Execution environment里选中新添加的JDK:如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jarissue resolved:如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar功build出来的jar包:如何处理Maven build时的error message Unable to locate the Javac Compiler in tools.jar


上一篇:用户登录后返回登录前页面的机制浅析


下一篇:java 图片 批量 压缩 +全部压缩