I’m trying to install Eclipse on my Windows 7 laptop.
When trying to run eclipse.exe I 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: C:\ProgramFiles
(x86)\Eclipse\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH
I know that I have a JRE on my computer, so I modified the eclipse.ini file to point it to the correct location:
-vm
C:\Program Files (x86)\Java\jre6\bin
Now when I run the eclipse exe file it starts to run, but then I get the following error:
Failed to load the JNI shared library “C:\Program Files
(x86)\Java\jre6\bin\client\jvm.dll”
I tried adding the javaw.exe file to the path in eclipse.ini:
-vm
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
But then I get a long detailed error message:
---------------------------
Eclipse
---------------------------
Java was started but returned exit code=13
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Program Files (x86)\Eclipse\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:\Program Files (x86)\Eclipse\eclipse\\plugins\org.eclipse.platform_4.2.1.v201209141800\splash.bmp
-launcher C:\Program Files (x86)\Eclipse\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\Program Files (x86)\Eclipse\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813\eclipse_1503.dll
-startup C:\Program Files (x86)\Eclipse\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 1e38_58
-vm C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Program Files (x86)\Eclipse\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
---------------------------
OK
---------------------------
Any ideas of how I can get Eclipse to run?
Make sure that you’re version of Eclipse and JDK match, either both 64-bit or both 32-bit, then set the path of the JRE in the .ini file .
I think that the problem in your case is that you have a 64bit version of eclipse and you are trying to run it with a 32bit JVM …