Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Failed to load the JNI shared library.
icon4.gif  Failed to load the JNI shared library. [message #936463] Mon, 08 October 2012 02:58 Go to next message
Justin Hynes is currently offline Justin HynesFriend
Messages: 1
Registered: October 2012
Junior Member
When I launch eclipse 64 bit, I get the message "failed to load JNI shared library C:\Program Files\Java\jre7\bin\client\jvm.dll"

I have 64 bit OS, Java, and Eclipse.

My eclipse.ini is as follows:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-vmC:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
Re: Failed to load the JNI shared library. [message #937477 is a reply to message #936463] Tue, 09 October 2012 02:02 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1051
Registered: July 2009
Senior Member
So you are trying to use the JVM from C:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe and something still tries to find required libs in C:\Program Files\Java\jre7\bin\client\, right? This might be as easy as a missing newline after "-vm" and before "C:\...".

If that's not the problem, are you able to run Java programs from a command line? Is that JVM at "C:\Program Files\Java\jre7\..." working?
Re: Failed to load the JNI shared library. [message #938073 is a reply to message #936463] Tue, 09 October 2012 14:16 Go to previous messageGo to next message
Eclipse UserFriend
On 10/7/2012 10:58 PM, Justin Hynes wrote:
> -vmC:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe

It needs to be on a new line, e.g.:

-vm
C:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe
Re: Failed to load the JNI shared library. [message #938074 is a reply to message #936463] Tue, 09 October 2012 14:16 Go to previous message
Eclipse UserFriend
On 10/7/2012 10:58 PM, Justin Hynes wrote:
> -vmC:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe

It needs to be on a new line, e.g.:

-vm
C:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe
Previous Topic:RMI ClassNotFoundException
Next Topic:groovy class cannot be resolved to a type
Goto Forum:
  


Current Time: Tue Dec 23 03:18:03 GMT 2014

Powered by FUDForum. Page generated in 0.01779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software