Windows – Jdk1.7.0_10 with eclipse Juno

eclipsejavajdkpathwindows 7

I downloaded Eclipse IDE for Java Developers for Windows 64 Bit from – eclipse download , and also jdk-7u9-windows-i586.exe from oracle downloads .

Then I installed the JDK in C:\Program Files (x86)\Java\jdk1.7.0_10 , and when I run the above eclipse I get –

enter image description here

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
(x86)\eclipse_juno_java_developer\eclipse\jre\bin\javaw.exe in your
current PATH

Likely the problem is in the Environment variables

enter image description here

I have in **User variable

PATH =  C:\Program Files (x86)\Java\jdk1.7.0_10\bin; 

and in system variable

JAVA_HOME  = C:\Program Files (x86)\Java\jdk1.7.0_10
PATH =  C:\Program Files (x86)\Java\jdk1.7.0_10 

My OS is Windows 7 Home Premium 64-bit Service Pack 1.

Any solution? What is wrong here?

Best Answer

As I mentioned in comments, you've installed 64-bit version of Eclipse & on top of that, installed the 32-bit version of JRE/JDK. And then you're forcing the path - it's not a good idea to mix and match 32-bit / 64-bit dependencies.

I'd recommend you to uninstall both, remove the path changes you've done and stick to either 32-bit Eclipse/32-bit JRE/JDK or 64-bit Eclipse/64-bit JRE/JDK.

Once you've done that, all should be fine

Related Question