Eclipse / Maven错误:“在此环境中不提供编译器” [英] Eclipse/Maven error: "No compiler is provided in this environment"
问题描述
现在我准备好部署我的第一个修改和需要运行Maven 安装
,但我无法使其正常工作 - 我在控制台上获得以下输出:
[ERROR]无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.1:在项目中编译(默认编译)mrpapp:编译失败
[ERROR]此环境中不提供编译器。也许你正在运行一个JRE而不是一个JDK?
但是我绝对 am 运行JDK和不是JRE。我仔细检查了我的 我附加了我的 任何帮助将不胜感激。 p> 转到窗口→首选项→Java→安装的JRE。 看看是否有一个条目指向您的JDK路径,如果没有,请单击编辑按钮,并将您配置的路径您的 I am a relative newcomer to the world of Java enterprise development. My organization's Java guru is out on indefinite family leave, and I have been assigned the task of maintaining some of the Java applications he developed. He setup Eclipse [Kepler SR1] with Maven on my computer before he left, and it appeared to work ok. Now I'm ready to deploy my first modification and need to run a Maven [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mrpapp: Compilation failure but I definitely am running a JDK and not a JRE. I double-checked my I am attaching a copy of my Any help will be greatly appreciated. Go to Window → Preferences → Java → Installed JREs. And see if there is an entry pointing to your JDK path, and if not, click on Edit button and put the path you configured your 这篇关于Eclipse / Maven错误:“在此环境中不提供编译器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! $ JAVA_HOME
( C:\Program Files(x86)\Java\jdk1.7.0_60
),而 在 bin
目录中有 javac.exe
/ p>
pom.xml
文件的副本供您审阅。我确定有一些事情导致了这个问题,但我不知道这可能是什么。我正在使用带有Windows 7 64bit的笔记本电脑,如果您需要任何进一步的平台/环境信息,我也可以提供。
JAVA_HOME
环境。 install
, but I am having trouble getting it to work - I get the following output on my console:
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?$JAVA_HOME
(C:\Program Files (x86)\Java\jdk1.7.0_60
) and it does have a javac.exe
in its bin
directory.pom.xml
file for your review. I'm sure there is something in there that is causing the problem, but I am not sure what it might be. I am using a laptop with Windows 7 64bit, if you need any further platform/environment info I can supply that as well.JAVA_HOME
environment.