Eclipse: The specified JRE installation does not exist

后端 未结 8 1276
面向向阳花
面向向阳花 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.

    0 讨论(0)
  • 2020-12-29 21:56

    I had the same problem. This solution might help fix the issue as it did for me.

    1. Right click on the project -> Build Path -> Configure Build Path
    2. In the Libraries tab, select JRE System Library and click Edit
    3. In the Edit window you can either select Workspace default JRE or in Execution environment drop down select the JRE installed
    0 讨论(0)
提交回复
热议问题