【发布时间】:2015-02-21 12:47:38
【问题描述】:
我正在使用 Eclipse Luna 开发 java maven 应用程序。
我现在是,或者曾经是,但现在又是,使用 jdk1.7 作为我默认安装的 JRE。
在我从 SVN 进行更新后,我的 pom.xml 文件开始出现此错误:
You need to run build with JDK or have tools.jar on the classpath.
If this occures during eclipse build make sure you run eclipse under JDK as well
(com.mysema.maven:apt-maven-plugin:1.0.6:process:default:generate-sources)
我注意到我的 jdk1.7 安装不知何故从 eclipse 中消失了。 我已经尝试了我在 stackoverflow 上找到的所有选项,关于重新添加该 jdk1.7 并将其设置为我的项目的 JRE 库,甚至将 tools.jar 添加到 eclipse 上的 jdk1.7 库中,但我我仍然得到错误,这现在已经没有什么意义了。
【问题讨论】:
标签: java eclipse maven classpath