I am trying to get Eclipse v3.5 (Galileo) to re-run on my computer - I have run it before with no problems, but now I keep getting this error:
I have windows 7 64-bit, and I had this same problem with eclipse. To get it to work, I had to use internet explorer (64-bit version) to download java. This was the only way to get java to install a 64-bit version. When I used firefox to install java, it automatically installed a 32-bit version (so idiotic!). And The Eclipse 64-bit version wouldn't detect the java 32-bit version.
First of all thanks to YouYou for his solution! I tried answer by YouYou (https://stackoverflow.com/a/14464653/801919). Initially, it did not work for me. Following are the steps that I needed to take to make it work:
Choose the 32-bit download to use with a 32-bit browser.
Hence, I downloaded 32-bit version.Java was started but returned exit code=13
javaw.exe
from that version....And Eclipse started working!!! Yaay!
If you download the 64 bit version of Eclipse; it will look for the 64 bit version of JRE. If you download the 32 bit version of Eclipse; it will look for the 32 bit version of JRE
What I did was to install the both the 32 and 64 bit version of JRE. You can get that from the SUN Oracle site. The JAVA site seems to automatically install the 32 bit version of Java. I guess that's because of the web browser.
Solution in a nutshell:
Right-click on My Computer, click properties, then advanced system settings, a System properties window will popup, under advanced tab, choose environment variables, Environment variables window will popup, under the System variables section , look for PATH
variable, and edit the value, changing it (the version; jre6,jre7, etc) to whatever jre you're using, e.g for mine: C:\Program Files\Java\jre7\bin
if after adding the C:\Program Files\Java\jdk1.8.0_92\bin in PATH variable in environment variables the eclipse gave the same error
check eclipse configuration settings file that found in eclipse folder, you must see the same jdk path you have in C:\program Files
I hope it help.
if you update your java version with default update in your 64 bit computer (and you have 32 bit browser), java will install 32 bit version. You should find 64 bit java version and install it.