Problem
Failed to load JNI shared library jvm.dll while starting eclipse on Windows 7 64 bit and eclipse 64 bit.
Cause
Incompatible java with eclipse. Both should be 64 bit.
Resolution
If eclipse is 64 bit , update Java in Path to C:\Program Files\Java\jre7
or else
check the Java location being referred by eclipse and copy the content C:\Program Files\Java\jre7 to eclipse jre location.
This error can occur for 2 reasons:
1) Your Eclipse and jdk both must be either 32 bit OR both 64 bit.
You cannot have 32 bit jdk and 64 bit Eclipse OR vice-versa.
2) The -vm argument in your eclipse.ini file is either absent or incorrect.
You will find your eclipse.ini (Configuration File) in your eclipse root folder.
Following are the content your Eclipse File must contain.
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Java\JDK\1.6\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
Look at the red coloured (2 lines) in the above content.
make sure -vm must point to correct location of your javaw.exe file..
No comments:
Post a Comment