在MAVEN导出中找不到Javac编译器
我想用maven导出一个Java项目。但我犯了这个错误:在MAVEN导出中找不到Javac编译器,java,maven,Java,Maven,我想用maven导出一个Java项目。但我犯了这个错误: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project craftbukkit: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Prog
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project craftbukkit: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre8\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
我已将我的JAVA主页设置为以下目录:
C:\Program Files\Java\jdk1.8.0
我必须做什么才能让它工作
谢谢 你可以试试:
可能重复感谢它现在工作!如何从Github项目的最新来源更新Maven项目?也许我没有得到你想要的。但与其他任何项目一样,您可以使用git命令更新项目,并使用maven重新编译它。顺便问一下,你的问题是怎么解决的?