I tried to run Eclipse on my Windows 7 64-bit machine and got 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:
D:\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH
This is what I did to fix it.
1. As per http://developer.android.com/sdk/index.html click on the Download the SDK button
2. Select “I have read and agree with the above terms and conditions” and 64-bit then click on the Download the SDK ADT Bundle for Windows
3. Save the file in your preferred location – since it is 460MB it might take a while.
4. When it is done just extract it to your preferred location
Download JDK (Java Development Kit)
1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2. Scroll until you see jdk-7u40-windows-x64.exe and click on Accept License Agreement on top and then click the download link
3. This will download your JDK which is about 125MB
4. After the file has been downloaded double click on the .exe to install it. You can use all the default settings
5. When it is done simply go to your Eclipse directory which is inside the extracted files done in the first part of this tutorial and run the eclipse.exe file. Your eclipse should open without any issues now.
Should your Eclipse not open for whatever reason after this please try the following:
1. Make a Eclipse shortcut and right click the new shortcut. Select properties and modify target as “eclipse target” -vm “jdk path”
C:\Android\adt-bundle-windows-x86_64-20130917\eclipse\eclipse.exe -vm “C:\Program Files\Java\jdk1.7.0_40\bin”
If this was helpful please click on the STAR rating and give me a thumbs up, you can also comment below 🙂
Have a good one!! Cheers!