致命错误编译:找不到tools.jar: [英] Fatal error compiling: tools.jar not found:

查看:175
本文介绍了致命错误编译:找不到tools.jar:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中编译项目时,我得到以下错误:

When compiling a project in Eclipse, I get below error:


致命错误编译:找不到tools.jar:

Fatal error compiling: tools.jar not found:

这是怎么造成的,如何解决?

How is this caused and how can I solve it?

推荐答案

转到Windows - > 偏好设置

Java - > 已安装的JRE - > 执行环境

Java -> Installed JREs –> Execution Environment

JavaSE1.x - > JDE 1.x

如果您没有 JDK JRE 中的code>,然后

If you don’t have the JDK in the Installed JRE, then

选择已安装的 JRE 并添加 JDK 安装路径

Select the Installed JRE and Add the JDK installed path

让我们尝试配置您的运行配置以清理安装

Let's try to configure your run configurations to clean install

点击黑色小箭头然后运行配置

Click on the small black arrow and then Run Configurations

Afte r,你只需将干净安装放在你的Maven目标中,如下所示:

After, you just put clean install in your Maven goal, like this :

然后,尝试运行您的编辑,我们将看到会发生什么...... :)

And then, try to run your compilation, and we will see what happens... :)

这篇关于致命错误编译:找不到tools.jar:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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