Fatal error compiling: tools.jar not found: [closed]

我是研究僧i 提交于 2019-11-28 09:42:14
Valentin Montmirail

Goto Windows -> Preferences

Java -> Installed JREs –> Execution Environment

JavaSE1.x -> JDE 1.x


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

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

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

Valentin Montmirail

You need to put the right Java Build path for your project.

In Eclipse:

--> Right click the project name - Properties (keyboard shortcut: [Alt] + [Enter] )
--> Libraries
--> Change the JRE7 to JDK7.

And I think the problem will be solved that way ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!