specified JRE installation does not exist

81,084

Solution 1

It worked after running "mvn install clean -P prepare"

Solution 2

Double click on the server to bring up the Overview.

Click on Runtime Environment.

Select the JRE from the dropdown list. You may need to set this up by clicking on Installed JREs and clicking Add.

Solution 3

If the instructions above did not help you can do the following:

1- from the run menu choose "Run configurations..."

2- Choose your maven run profile and then click on the "JRE" tab.

3- Select "Alternate JRE" and from the drop down select "jdk1.7xxx" (or whatever jdk you want to use" you can also select the workspace default jre.

I was facing the same problem and this helped.

Solution 4

Go to the build file.

Right click on it.

Do the following as per the screenshots

enter image description here

enter image description here

Solution 5

Window-->Prefenerces-->Server-->Runtime Environment; like this....enter image description here

Edit your Apache,and select your jdk dir....

Share:
81,084
tomermes
Author by

tomermes

https://www.linkedin.com/in/tomer-mesika-0aa7b242/

Updated on October 16, 2020

Comments

  • tomermes
    tomermes over 3 years

    I'm trying to launch a server on my tomcat 7 on my eclipse indigo EE
    and I get the following error:

    "'starting Tomcat v7.0 server at localhost' has encountered a problem.
    The specified JRE installation does not exist"

    I checked the build path configuration and on the libraries section I have the
    JDK7 as JRE System Libraray and when I check "Installed JREs..." the correct
    path is there - "C:\Program Files\Java\jdk1.7.0_01".

    What else can be done? Many thanks.

    p.s. - I'm also using maven 3.0.3

  • lumpynose
    lumpynose almost 10 years
    Fixing the JRE in the JRE tab for the maven run configuration fixed it for me. Thanks
  • Guy L
    Guy L almost 9 years
    add maven configuration with goals install clean and profile prepare
  • David
    David almost 7 years
    you save my day