Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Failed to load JNI library
Failed to load JNI library [message #1014936] Tue, 26 February 2013 21:21 Go to next message
rafy avades is currently offline rafy avadesFriend
Messages: 1
Registered: February 2013
Junior Member
I've just installed Eclipse on my new machine.

64-bit version, with 64-bit Java, 64-big JDK and 64-big JVM.

I've read here: http://wiki.eclipse.org/Eclipse.ini

However, my Eclipse.ini is all on one line like so:

-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.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
C:\Program Files\Java\jre7\bin\javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m


When saving, it says "Access is denied" I am the admin on this account, I am the only user account on this PC.

Does the above ini file look okay? That is where my javaw.exe is installed.
Re: Failed to load JNI library [message #1015242 is a reply to message #1014936] Wed, 27 February 2013 21:01 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2/27/2013 12:24 PM, rafy avades wrote:
> I've just installed Eclipse on my new machine.
>
> 64-bit version, with 64-bit Java, 64-big JDK and 64-big JVM.
>
> I've read here: http://wiki.eclipse.org/Eclipse.ini
> However, my Eclipse.ini is all on one line like so:
>
> -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.jee.product
> --launcher.defaultAction
> openFile
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vmargs
> C:\Program Files\Java\jre7\bin\javaw.exe
> -Dosgi.requiredJavaVersion=1.5
> -Dhelp.lucene.tokenizer=standard
> -Xms40m
> -Xmx512m
>
>
> When saving, it says "Access is denied" I am the admin on this account,
> I am the only user account on this PC.
>
> Does the above ini file look okay? That is where my javaw.exe is installed.

Rafy,

Squint harder at the eclipse.ini doc. You should instead have:

..
..
..
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
-vmargs
..
..
..

Also, if you're going to develop in Java, you might just as well change
that path to point at an actual JDK (and not merely a JRE) because
you'll need it. However, you can point at your JDK via Window -> Java ->
Installed JREs whatever JRE is running Eclipse for you.

Hope this helps. Best of luck.
Re: Failed to load JNI library [message #1016546 is a reply to message #1014936] Wed, 06 March 2013 20:51 Go to previous messageGo to next message
D Wojee is currently offline D WojeeFriend
Messages: 3
Registered: March 2013
Junior Member
Im new too and trying to install the modelling-juno on windows 8

so trying to work from the folder extracted from the zip download. (c:\downloads\eclipse)

I add the
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
and was shown an exit error 13
so
reading further
change to
C:\Program Files\Java\jre7\bin\client\jvm.dll
and get the OP's error
"Failed to load the JNI..."

or should i just copy both files to the eclipse folder?

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
org.eclipse.epp.package.modeling.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m


So I wonder, since Java for Win8 is only the 32-bit version and I am trying to install the 64 bit version of Eclipse Modeling that there might be a conflict, is that a correct assumption?
Re: Failed to load JNI library [message #1016567 is a reply to message #1016546] Wed, 06 March 2013 23:18 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/6/2013 4:07 PM, D Wojee wrote:
> Im new too and trying to install the modelling-juno on windows 8
> so trying to work from the folder extracted from the zip download.
> (c:\downloads\eclipse)
>
> [snip]
>
> So I wonder, since Java for Win8 is only the 32-bit version and I am
> trying to install the 64 bit version of Eclipse Modeling that there
> might be a conflict, is that a correct assumption?

Yup, that's right. You must pair Eclipse with the bitteness of your JRE.
If you're running a 32-bit OS, you can't run a 64-bit JRE and you can't
run 64-bit Eclipse.
Re: Failed to load JNI library [message #1016656 is a reply to message #1016567] Thu, 07 March 2013 09:34 Go to previous messageGo to next message
D Wojee is currently offline D WojeeFriend
Messages: 3
Registered: March 2013
Junior Member
I did instal the 64 bit win8 but apparently java doesnt install as 64-bit, which is frustrating since I am using Waterfox, a 64bit browser. Even my system information shows the 64-bit info.

This is from the Java FAQ:
Quote:

Why do I only get the 32-bit Java when I go to Java.com?
Java.com provides a Java version based on your browser and operating system (OS). If you are running a 64-bit version of Windows 8, you have access to 32-bit and 64-bit versions of Internet Explorer 10 on your system. The desktop version of the Windows 8 OS does not run in a full 64-bit mode (unless you have Enhanced Protected Mode in Internet Explorer 10 turned on), thus 32-bit Java is the default.


Quite obvious to me that Java did not read my system or browser correctly, but yet will not let me download or install a 64 bit version of it. We have a word for this kind of behavior in the gaming community - lame.

After more digging I found the right java version, seems the auto install just doesnt work right so have to download and install java, as they call it, offline mode.

And with that fixed, we have a winner. thanks

[Updated on: Thu, 07 March 2013 10:09]

Report message to a moderator

Re: Failed to load JNI library [message #1016777 is a reply to message #1016656] Thu, 07 March 2013 16:39 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/7/2013 2:34 AM, D Wojee wrote:
> I did instal the 64 bit win8 but apparently java doesnt install as
> 64-bit, which is frustrating since I am using Waterfox, a 64bit browser.
> Even my system information shows the 64-bit info.
> This is from the FAQ:
> Quote:
>> Why do I only get the 32-bit Java when I go to Java.com?
>> Java.com provides a Java version based on your browser and operating
>> system (OS). If you are running a 64-bit version of Windows 8, you
>> have access to 32-bit and 64-bit versions of Internet Explorer 10 on
>> your system. The desktop version of the Windows 8 OS does not run in a
>> full 64-bit mode (unless you have Enhanced Protected Mode in Internet
>> Explorer 10 turned on), thus 32-bit Java is the default.
>
>
> Quite obvious to me that Java did not read my system or browser
> correctly, but yet will not let me download or install a 64 bit version
> of it. We have a word for this kind of behavior in the gaming community
> - lame.
> So other than being forced to use the 32 bit of eclipse for modeling,
> any suggestions?

This is surprising to me, but then I don't do Windoz. So, you're saying
that no 64-bit Java will install on Windows 8? Radically surprising! No
wonder when W8 came out I told my wife she's headed next to Macintosh
(I'm a Linux guy myself).

Hope life gets better.
Re: Failed to load JNI library [message #1016796 is a reply to message #1016777] Thu, 07 March 2013 17:32 Go to previous messageGo to next message
D Wojee is currently offline D WojeeFriend
Messages: 3
Registered: March 2013
Junior Member
hahah love the smidge of sarcasm there! computers choosing for humans, phooey!

oh and my other computer is a suse box (im still learning there)

[Updated on: Thu, 07 March 2013 17:33]

Report message to a moderator

Re: Failed to load JNI library [message #1017643 is a reply to message #1016796] Tue, 12 March 2013 09:02 Go to previous message
nannasin william is currently offline nannasin williamFriend
Messages: 1
Registered: March 2013
Junior Member
I've just installed Eclipse on my new machine.
Previous Topic:Creating a custom class with a pre decided template
Next Topic:Issue in starting eclipse juno
Goto Forum:
  


Current Time: Fri Apr 19 03:09:02 GMT 2024

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

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

Back to the top