Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 4.2 Juno doesn't find JRE

I downloaded Eclipse Juno and I am trying to run it for the first time. System is Win 7 Home Premium and I also downloaded JDK. I am getting the following error:

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH

The javaw.exe file it needs is in... C:\Program Files\Java\jre7\bin\javaw.exe

How do I fix this problem? Thanks in advance

like image 935
user2375575 Avatar asked Feb 09 '26 21:02

user2375575


1 Answers

" A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH "

You need to install Java JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

and then edit your path location:

Right-click on computer->properties->advanced system settings->advanced->environment variables:

enter image description here

Add C:\Program Files\Java\<JDK version>\bin to your PATH variable.

Also add JAVA_HOME as a system variable. I have my JAVA_HOME set to C:\Program Files\Java\jdk1.7.0_03.

When you are done, start cmd, type java, and hit enter. If you get an error that it can not be found then java is not correctly installed.

like image 117
Jason Avatar answered Feb 15 '26 17:02

Jason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!