specified JRE installation does not exist

匿名 (未验证) 提交于 2019-12-03 01:26:01

问题:

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

回答1:

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.



回答2:

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.



回答3:

Go to the build file.

Right click on it.

Do the following as per the screenshots



回答4:

Go to PropertiesJava Build PathLibraries.

Here you will see a red cross on the library whose path is not correct.

Select this library, click the Edit button, and change it to the correct path.



回答5:

Here is a solution with pictures

http://javahonk.com/specified-jre-installation-does-not-exist/



回答6:

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



回答7:

Window-->Prefenerces-->Server-->Runtime Environment; like this....

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



回答8:

For Eclipse MARS, for maven projects.

After you install the new JRE as explained (for instance here: http://javahonk.com/specified-jre-installation-does-not-exist/), don't use your old configuration, BUT create a new configuration.



回答9:

Updated the Java , JRE. so I have faced this same issue, I have tried all this but i continued with this issue. then after that, i have removed the server from application and then added new server and with that i have mentioned new JRE version now its working fine.



回答10:

Open eclipse and find the server tab and try to open it. There click on Runtime Environment

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



回答11:

If you use Maven, try:

EclipseMavenJRE_1

EclipseMavenJRE_2



回答12:

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

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!