Eclipse: The specified JRE installation does not exist

后端 未结 8 1316
面向向阳花
面向向阳花 2020-12-29 20:57

I used to have Eclipse configured well and work fine before. But I just uninstalled it and installed Eclipse Juno again on my Mac OS 10.10 today. But I kept getting this err

8条回答
  •  天涯浪人
    2020-12-29 21:54

    This happened to me when I updated Java. Though it was updated in my system, it didn't update the references in eclipse. I was working on web projects so I had to do the following steps

    1. Windows > Preferences > Java > Installed JREs (here the old version was present without showing any error) > Remove any old versions that are not present in your system and Add latest release or the present ones.

    2. Confirm Build Path of your projects and confirm they are pointing at the correct JRE. Project > Build Path > Check JRE version is correct

    After doing this my project still gave me the same error so I checked JRE for my tomcat servers setup in eclipse

    1. Window > Preferences > Server > Runtime Enviroments > Select each server and edit it, reselect the jre and apply (it took me some time here to make eclipse realise i had the correct JRE selected).

    Thats it, try running now it it should work.

提交回复
热议问题