Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Failed to load JNI(Tech/install help)
Failed to load JNI [message #996409] Wed, 02 January 2013 02:02 Go to next message
don savage is currently offline don savageFriend
Messages: 2
Registered: January 2013
Junior Member
I have looked around and tried various things including reinstalling java and messing with the config to change the java use. I am using a 64 bit windows 7 PC and I downloaded the 64 bit adt bundle. I also have both 32 and 64 bit java.
Any suggestions? More info below!

The location my java jvm.dll file (for 64 bit) is in:

C:\Program Files (x86)\Java\jre7\bin\client

My current eclipse.ini file 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
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
Re: Failed to load JNI [message #996426 is a reply to message #996409] Wed, 02 January 2013 03:23 Go to previous messageGo to next message
don savage is currently offline don savageFriend
Messages: 2
Registered: January 2013
Junior Member
Note. I tried changing the eclipse.ini to:
-vm
C:\Program Files\Java\jre7\bin\client\jvm.dll

and now I get the error "Failed to load the JNI shared library "C:\Program Files\Java\jre7\bin\client\jvm.dll"."
Re: Failed to load JNI [message #996597 is a reply to message #996409] Wed, 02 January 2013 13:41 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 01/01/2013 08:05 PM, don savage wrote:
> I have looked around and tried various things including reinstalling
> java and messing with the config to change the java use. I am using a 64
> bit windows 7 PC and I downloaded the 64 bit adt bundle. I also have
> both 32 and 64 bit java. Any suggestions? More info below!
>
> The location my java jvm.dll file (for 64 bit) is in:
> C:\Program Files (x86)\Java\jre7\bin\client
>
> My current eclipse.ini file 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
> com.android.ide.eclipse.adt.package.product
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> com.android.ide.eclipse.adt.package.product
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vm
> C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
> -vmargs
> -Dosgi.requiredJavaVersion=1.6
> -Xms40m
> -Xmx768m
> -Declipse.buildId=v21.0.1-543035
>

Of course, this eclipse.ini is clearly saying to use a 32-bit Java, no?
Re: Failed to load JNI [message #996600 is a reply to message #996597] Wed, 02 January 2013 13:45 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 01/02/2013 06:43 AM, Russell Bateman wrote:
> On 01/01/2013 08:05 PM, don savage wrote:
>> I have looked around and tried various things including reinstalling
>> java and messing with the config to change the java use. I am using a 64
>> bit windows 7 PC and I downloaded the 64 bit adt bundle. I also have
>> both 32 and 64 bit java. Any suggestions? More info below!
>>
>> The location my java jvm.dll file (for 64 bit) is in:
>> C:\Program Files (x86)\Java\jre7\bin\client
>>
>> My current eclipse.ini file 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
>> com.android.ide.eclipse.adt.package.product
>> --launcher.XXMaxPermSize
>> 256M
>> -showsplash
>> com.android.ide.eclipse.adt.package.product
>> --launcher.XXMaxPermSize
>> 256m
>> --launcher.defaultAction
>> openFile
>> -vm
>> C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
>> -vmargs
>> -Dosgi.requiredJavaVersion=1.6
>> -Xms40m
>> -Xmx768m
>> -Declipse.buildId=v21.0.1-543035
>>
>
> Of course, this eclipse.ini is clearly saying to use a 32-bit Java, no?
(Oops, didn't read all messages before asking this; disregard please.)
icon14.gif  Re: Failed to load JNI [message #998853 is a reply to message #996597] Thu, 10 January 2013 20:38 Go to previous messageGo to next message
harshavardhan madasu is currently offline harshavardhan madasuFriend
Messages: 1
Registered: January 2013
Junior Member
hey thanks man...this worked for me..all others please try this
Re: Failed to load JNI [message #1219472 is a reply to message #998853] Wed, 04 December 2013 04:39 Go to previous message
Gary Cov is currently offline Gary CovFriend
Messages: 1
Registered: December 2013
Junior Member
Yes, I had the same problem, though of course should have twigged when I found javaw.exe in Program Files (86) and not just Program Files. I had previously assumed that given I'm running a 64 bit version of Win 7 the Java being downloaded and updated was automatically the 64 bit version given there doesn't seem to be any way to specify it unless you choose Offline download.

In the end I had to do that to ensure I got the 64 bit version, uninstall the 32 bit version and then install the 64 bit version.

PS FWIW I then noticed that in Control Panel/Programs and Features that for Java it now says (64 bit) whereas with the 32 bit version it has no indicator.
Previous Topic:eclipse jcde java card project problem!
Next Topic:JAXB project wizard is not appearing in Eclipse J2ee
Goto Forum:
  


Current Time: Thu Mar 28 11:08:17 GMT 2024

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

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

Back to the top