July 20, 2018, 02:25:54 AM

Author Topic: Failed to load the JNI shared library C:/JDK/bin/client/jvm.dll error in Eclipse  (Read 5198 times)

EclipseJuno

  • Guest
Things were working fine with my Eclipse Juno IDE but suddenly now when I tried to open up the eclipse.exe file I got the error message as "Failed to load the JNI shared library "C:/JDK/bin/clien/jvm.dll".

Anyone had the same issue before and fixed it? Can you please share the information to resolve the problem?

Thank you.




Offline infomaniac

  • Administrator
  • Full Member
  • *****
  • Thank You
  • -Given:
  • -Receive:
  • Posts: 173
  • Karma: +0/-0
    • View Profile
    • Poke This Member
Seems to be an issue with your Java Classpath in your system. If it was working before and stopped working all of sudden then probably installation of new applications like Oracle DB, JBoss etc. would have forced you to set a different classpath for Java which is 32bit and you are using the Eclipse Juno which is 64bit.

So, now to resolve this problem you need to set the classpath of Java 64bit within your system Environment variables which will not be a 100% solution as some of your other applications will still need the Java 32bit in the classpath.

The best solution for this problem is to configure the Java classpath in eclipse.ini file. Follow the steps which are given below,

STEP 1: Go to the home path of your eclipse application -> Find the "eclipse.ini" file and open it.

STEP 2: Now add the argument -vm like this "-vm
<your jdk path>\bin\javaw.exe"
your eclipse.ini file will look something like below,


Quote
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files (x86)\Java\jdk1.6.0_24\bin\javaw.exe
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx512m

STEP 3: Save the file and restart the eclipse again which should work smooth now  8)
« Last Edit: August 26, 2014, 12:45:13 PM by infomaniac »

 
Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 
Copyrights © InfoManiac

Related Posts Plugin for WordPress, Blogger...