|
|
|
|
Re: Failed to load JNI shared library [message #545075 is a reply to message #544613] |
Tue, 06 July 2010 14:47 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
On 7/4/10 6:28 PM, Guido Stein wrote:
> HI all,
>
> I am getting the following error message when I try to run
> explipse:Failed to load JNI shared library "Program Files
> (x86)\Java\jdk1.6.0_20\jre\bin\client\jvm.dll"
>
> I am trying to use the Eclipse Release 3.6.0 which was last revised June
> 2, 2010.
>
> I am running Vista home premium. I am running the exe as an admin. I
> have not put the eclipse folder into the program folder area.
>
> I added the following to my ini file
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_20\jre\bin
First, make sure that you're version of Eclipse and JDK match, either
both 64-bit or both 32-bit.
Second, the -vm argument in eclipse.ini must point to the java
executable, not just the directory. See
http://wiki.eclipse.org/Eclipse.ini for examples.
Hope this helps,
Eric
> My ini is as follow
> -startup
> plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 0.v20100503
> -product
> org.eclipse.epp.package.java.product
> --launcher.defaultAction
> openFile
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_20\jre\bin
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx384m
>
>
> My computer return the following from "java -version"
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
>
> Please let me know if you have any thoughts about how to resolve this.
|
|
|
|
|
|
Re: Failed to load JNI shared library [message #559441 is a reply to message #545343] |
Thu, 16 September 2010 15:36 |
Hugh Messages: 4 Registered: December 2009 |
Junior Member |
|
|
I had exactly the same problem, the following error message:
Quote: |
Failed to load the JNI shared library "C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll".
|
and your previous posts helped me solve it, so thanks a lot!
I am running Windows 7, and I knew it was a 64-bit machine with the ability to run 32-bit apps, but I downloaded the 64-bit version of Eclipse.
Eclipse first said I had no version of Java; it wasn't true, but Java was not in the PATH. Still, not knowing any better I downloaded and installed the latest version of Java.
I finally figured out how to add Java to the PATH. Now, when I opened up a CMD prompt and typed Java, Windows was able to find it. Progress.
The error message from Eclipse changed from not finding Java at all to the one of this thread.
Hmmm. Much head scratching and reinstalling and I was stuck.
Problem was that I was trying to run the 64-bit version of Eclipse, and Javea was the 32-bit version, shown by the fact it was installed in the "C:\Program Files (x86)" directory and not in the "C:\Program Files\" directory.
I could not figure out how to get a 64-bit version of Java. Hmmm. Never mind. Instead downloaded the 32-bit version of Eclipse.
Now I have both Eclipse and Java as 32-bit and both work together great!!
So thanks for all your help!
I would say, it would be better if Eclipse could somehow detect that which version of Java is being run and give a more helpful message like:
Quote: |
This is the 64-bit [32-bit] version of Eclipse, but the version of Java is 32-bit [64-bit] and the two are not compatible.
Either change the version of Eclipse or the version of Java to be compatible.
|
That would help people go straight to the solution.
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Failed to load JNI shared library [message #1097586 is a reply to message #544613] |
Thu, 29 August 2013 23:20 |
ryk rod Messages: 1 Registered: August 2013 |
Junior Member |
|
|
All I Know Is Through All The Struggle Tryna Get Eclipse To Work,
First after downloading and running Eclipse(x64bit)
I've Gotten The Errors:
A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\eclipse\jre\javaw.exe javaw.exe in your current PATH
I Tried Changing Paths On My Remote Setting from Control Panel, I Made A Path To Where My Java(x64bit) was installed.
Retried Loading The Eclipse Application and It Started Running But,
I Got A New Error:
Failed to load the JNI shared library "C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
Anyways, None Of This Was Working And I Made Sure I Downloaded Both Eclipse(x64bit) and I Went To Java To Download The Java(x64bit)
It Said I Had The Current Java Intalled Already Up To date.
Still Didn't Work.....
But, I Saw Someone Saying They Might Have Had Java(x32bit) Running Even Though They Installed Java(x64)....They Tried Eclipse(x32bit) and It Worked For Them.
I Been Tryna Use Eclipse(x64bit) Because, Well You Know, I Usually Get/Run x64Bit.
But Never Worked For Eclipse.
So, I Deleted All The Eclipse and Downloaded The Eclipse(x32bit)
Extracted, Ran The Eclipse Application,
And It Loaded Up And Worked Right Away.
I Didn't Even Have To Change Path Unless Because I Already Have A Path In Remote Settings.
Anyways, It Worked, I Advise You Trying Both Eclipse (x32bit)/(x64bit).
If None Runs Try Going To
Control Panel / System / Remote Settings / Advance Tab / Enviroment Variables /
If You Dont Have A PATH On Top, Click New And Make PATH With Directory to Wherever Your Java Is Installed.
Bottom One Edit To Directory to Wherever Your Java Is Installed.
I Never Post So Thank Me If This Helps
|
|
|
|
|
Re: Failed to load JNI shared library [message #1390075 is a reply to message #1389751] |
Sat, 28 June 2014 21:43 |
|
On 06/28/2014 10:35 AM, Bill H. wrote:
> soooo when i tried to open the eclipse that was bundled in the latest
> 64-bit android SDK, the error message read Failed to load the JNI shared
> library "C:\Java\jdk1.8.0_05\jre\bin\client\jvm.dll".
> then i went on for a solution and found the -vm argument. so i gave it a
> try and added -vm
> C:\Java\jdk1.8.0_05\jre\bin\client\jvm.dll
>
> to my eclipse.ini. so now this is my eclipse.ini:
> -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.v20120913-144807
>
> -product
> adtproduct
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vm
> C:\Java\jdk1.8.0_05\jre\bin\client\jvm.dll
> -vmargs
> -Dosgi.requiredJavaVersion=1.6
> -Xms40m
> -Xmx768m
>
> but the problem still persists. i'm out of options. i need help :(
> p/s: yes i did check and found that i do have the 64-bit trio: 64-bit
> windows 8.1, 64-bit jdk and 64-bit eclipse.
http://wiki.eclipse.org/Eclipse.ini
suggests that you should instead have:
-vm
C:\Java\jdk1.8.0_05\bin\javaw.exe
or
C:\Java\jdk1.8.0_05\jre\bin\java.exe
Also, please be advised that there is not going to be a lot of help for
"bundled" Eclipse, that is, Eclipse not from eclipse.org. Please read
the sticky post at the top of this forum.
http://www.eclipse.org/forums/index.php/t/225513/
Cheers
|
|
|
|
Re: Failed to load JNI shared library [message #1396297 is a reply to message #1396126] |
Tue, 08 July 2014 05:27 |
|
Olatomiwa ajayi wrote on Mon, 07 July 2014 18:42Ive done everything still no change im Very sad all my riends have gotten to coding im still on this please help
What do you mean, "everything?" This thread started almost 4 years ago. Surely there's something different in your case compared to what's been posted in that time.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.10736 seconds