Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

specified JRE installation does not exist

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

like image 526
tomermes Avatar asked Jun 23 '12 14:06

tomermes


People also ask

Why JRE is not installed along with JDK?

Oracle no longer intends for end-users to be installing a JRE or a JDK. Java Applets in a browser and Java Web Start app delivery are both being phased out, leaving the end-user with no need for a JRE.

Why is JRE not installed?

Solution: To resolve this error you need to install the JRE 32-bit version. Your Windows Operating System may be of 32 bit or 64 bit. If your Windows Operating System is of 64-bit then by default JRE 64-bit will be installed on your system.


2 Answers

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.

like image 157
bdetweiler Avatar answered Oct 01 '22 21:10

bdetweiler


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.

like image 22
Ali Avatar answered Oct 01 '22 21:10

Ali