且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-11-17 10:24:52

转到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... :)