Eclipse Error: “Unable to locate executable for jr

2020-01-19 04:53发布

Eclipse keeps giving me the above error when trying to run my test class. JDK is properly installed and I've never gotten an error like this with other IDEs.

标签: java eclipse ide
3条回答
放我归山
2楼-- · 2020-01-19 05:44

It is necessary that you indicate the location of the jre. You must go to Window / Preferences, and then

  1. Java / Installed JREs: to indicate the location of JREs (you delete the old one and you add the new folder (jdk or jre)

OR

  1. Java / Installed JREs / Execution Environments: To associate and JRE runtime environment (JavaSE #your-version) - have to get out and return the preference to confirm the new location.
查看更多
\"骚年 ilove
3楼-- · 2020-01-19 05:44

Set it in your build path, right click project > properties > build path

查看更多
劳资没心,怎么记你
4楼-- · 2020-01-19 05:52

Also make sure it's correctly configured under :

Window > preferences > Java > Installed JREs
查看更多
登录 后发表回答