Eclipse: The specified JRE installation does not exist

后端 未结 8 1275
面向向阳花
面向向阳花 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:32

    I had the problem with one particular run configuration (unittests for one project in my case). In Run Configurations, I selected the troubled run configuration, then the JRE tab, and I could see it was broken (even though I couldn’t tell how it had happened). Selecting the right JRE solved my problem (project JRE in my case, even though this was just my standard JRE and not configured for the project specifically).

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

    I had the same problem. This is how I fixed it.

    1. Open Eclipse.
    2. Go to Preferences.
    3. Click Add
    4. A Window should popup with this:

    enter image description here

    1. Select Standard VM.
    2. Select Directory
    3. Use this path: Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/
    4. Click Open
    5. Then Finish
    6. Right click your Project then click Properties
    7. Select Java Build Path then click Add Library
    8. Select JRE System Library

    enter image description here

    1. Click Environments and select the jdk1.7.0_45
    2. Finish

    This is what you should see if you did it right:

    enter image description here

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

    Your run configurations maybe trying to use a specific JRE.

    Make sure you are using the correct JRE there.

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

    In eclipse click Window –> Show view –> Servers

    Once you are in servers view double click configured server to open its configuration and click Runtime environment link (in the left side).

    Select the JRE and click finish.

    Hope it help you

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

    The problem is generally related to project or plugin-specific runtime configurations that (still) point to some JDK/JRE that is not existing anymore (e.g. after some update or migration).

    We had this e.g. with the ANT plugin, where the launch configuration had to be updated (per ant build file), if it was e.g. not set to the default ~ run in same JRE as workspace.

    You will find these settings (typicall under the JRE tab) either:

    1. in the global plugin configuration under Eclipse -> Window -> Preferences -> ... of your plugin (typing runtime in the Filter section above may help to find it quickly).

    2. or it is set in a project/file-specific run configuration which you should see if you go to

      • Eclipse -> Run -> Run configurations... or
      • right click on your project/file and select Run As -> Run Configurations ...
    3. or it is set in a project/file-specific external tool configuration (e.g. like used by ANT) which is similarly to be found here:

      • Eclipse -> Run -> External Tools -> External Tools Configuration ... or
      • right click on your project/file and select Run As -> External Tool Configurations ...
    0 讨论(0)
  • 2020-12-29 21:52

    Main Cause of this Error is You Maybe forgot the set Build patch. When you Import Old Project this time Old Java Build Patch Existing You Have to give New One which one you currently using in your work space.

    Process:- Right Click Project -> Build patch -> Configure Build path-> Add Library-> System Library-> Set JRE (Default or Alternative)

    0 讨论(0)
提交回复
热议问题