Search This Blog

Saturday, March 9, 2013

Eclipse : failed to load the jni shared library and returned exit code 13


It's been a long time to write in something in blog due to bust schedule and hard disk crash  , today I got a time re setup my system ...  While setting up jdk and eclipse today I encountered two problems :

1. After installing JDK on my 64 bit machine when i clicked on eclipse it prompted me following message :
         "failed to load the jni shared library"

to fix this I figured out that my eclipse.ini file has old version (1.5) and i have installed 1.6 
  Solutiong which found as below :  make an entry -vm
C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe (below is copied version to see where i made this entry)


-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_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:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m


2. Even after this after click on eclipse exe , I found another error  " returned exit code 13" and cause is as below :

version of jdk was of 32 bit while of eclipse 64 bit .. I have installed 64 bit version of JDK then to fix this .

Now my eclipse works smoothly with new (JDK1.6) version :). Happy moment for me . 

Cheers 

Kapil 


No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts