.[ERROR] Unable to locate the Javac Compiler in
2013-03-22 00:57
639 查看
When run maven project in Eclipse, you probably encounter the below error:
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.
OK. The problem is solved.
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.
OK. The problem is solved.
相关文章推荐
- Unable to locate the Javac Compiler in: [ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar
- 解决mvn compile [INFO] Compilation failure Unable to locate the Javac Compiler in:
- Maven出现 Unable to locate the Javac Compiler in解决方法
- Eclipse: Problem: Unable to locate the Javac Compiler in...
- m2eclipse报错:Unable to locate the Javac Compiler in: C:Program FilesJavajre6..libtools.jar
- Maven出现 Unable to locate the Javac Compiler in解决方法
- Maven打包异常Unable to locate the Javac Compiler in:Please ensure you are using JDK 1.4 or above and
- Unable to locate the Javac Compiler in: C:Program FilesJavajre6..libtools.jar解决办法
- Eclipse maven 打包出错 : COMPILATION ERROR Unable to locate the Javac Compiler
- m2e (maven eclipse) 在运行一些命令时出现了无法compile(Unable to locate the Javac Compiler in:)
- eclipse报错:Unable to locate the Javac Compiler in: C:Program FilesJavajre6..libtools.jar
- 使用eclipse运行maven项目提示Unable to locate the Javac Compiler in: C:/Program Files/Java/jre6/../lib/tools.
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- 在XP系统下搭建maven环境出的问题 Unable to locate the Javac Compiler in: C:\Program Files\Java\jre6\..\lib\tools.jar
- Unable to locate the Javac Compiler in 错误的解决办法之一
- maven install Unable to locate the Javac Compiler in: C:\Program Files\Java\jre7\..\lib\tools.jar
- m2e (maven eclipse) 在运行一些命令时出现了无法compile(Unable to locate the Javac Compiler in:)
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- Unable to locate the Javac Compiler in:C:/Program Files/Java/jre1.5.0_22/../lib/tools.jar