在JRE中找不到Maven Build错误TOOLS.JAR [英] Maven Build error TOOLS.JAR NOT FOUND IN JRE

查看:68
本文介绍了在JRE中找不到Maven Build错误TOOLS.JAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建Maven项目时出现此问题..请帮帮我..

I am getting this problem while building maven project .. please help me out..

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Subs_Engine: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [Help 1]

推荐答案

如果要在eclipse中使用它,请确保Eclipse指向JDK,而不是指向JRE.

If you're getting this in eclipse make sure that Eclipse is pointing to a JDK and Not a JRE.

在Eclipse中,导航至Window-> Preferences-> Java-> Installed JRES-Add ... Standard VM,然后将Directory ...指向JDK.如果没有安装JDK,显然您将需要安装它.

In Eclipse navigate to Window->Preferences->Java->Installed JRES- Add... Standard VM and point Directory... to a JDK. You'll obviously need to install a JDK if you have not done so.

这篇关于在JRE中找不到Maven Build错误TOOLS.JAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆