Eclipse Error: “Unable to locate executable for jre7”

邮差的信 提交于 2019-12-13 22:53:37

问题


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.


回答1:


Also make sure it's correctly configured under :

Window > preferences > Java > Installed JREs



回答2:


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.



回答3:


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



来源:https://stackoverflow.com/questions/29693969/eclipse-error-unable-to-locate-executable-for-jre7

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