Eclipse Galileo fails to start with JDK 1.6.0_20 

Joined:
04/09/2007
Posts:
775

June 01, 2010 16:44:12    Last update: June 01, 2010 16:45:52
I installed JDK 1.6 under C:\jdk1.6.0_20 and unpacked Eclipse GALILEO in C:\local\eclipse. When I launched Eclipse with eclipse.exe, it simply displayed a splash page and shutdown.

Running eclipsec.exe displayed some vague errors:
C:\local\eclipse>eclipsec
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries


Turning on debug:
C:\local\eclipse>eclipsec -debug
Start VM: -Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=C:\local\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.
R35x_v20090715.jar
-os win32
-ws win32
-arch x86
-showsplash C:\local\eclipse\\plugins\org.eclipse.platform_3.3.202.v201002111343\splash.bmp
-launcher C:\local\eclipse\eclipsec.exe
-name Eclipsec
--launcher.library C:\local\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup C:\local\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v200
90715.jar
-product org.eclipse.epp.package.jee.product
-debug
-vm C:\jdk1.6.0_20\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=C:\local\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.
R35x_v20090715.jar
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries


The Solution: add -vm option to eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm 
C:\jdk1.6.0_20\jre\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Share |
| Comment  | Tags