Failed to load the jni shared library jvm.dll while starting Eclipse
While launching Eclipse IDE, You may get this type of error "Failed to load the JNI shared library cannot find jvm.dll".
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.
Comments
Post a Comment