Eclipse Error: "Unable to find executable for jre7"

Eclipse keeps giving me the above error when trying to run my test class. The JDK is installed correctly, and I never got an error like this with other IDEs.

-2
source share
3 answers

Also make sure it is configured correctly:

Window > preferences > Java > Installed JREs 
+1
source

You must specify the location of jre. You should go to window / Preferences and then

  • Java / Installed JREs: to indicate the location of the JRE (you delete the old file and add a new folder (jdk or jre)

OR

  1. Java / Installed JRE / Execution environments: for communication and JRE runtime (JavaSE # your-version) - should exit and return preference to confirm the new location.
+1
source

Define it in your build path, right click on the project> propertiesa> build path

0
source

Source: https://habr.com/ru/post/1247570/


All Articles