Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem running eclipse(when i run eclpse 4.1, i get an error)
Problem running eclipse [message #692198] Sun, 03 July 2011 21:46 Go to next message
Andrew  is currently offline Andrew Friend
Messages: 1
Registered: July 2011
Junior Member
I downloaded eclipse 4.1 the other day, but when i tried to run it, the eclipse loading box popped up with an error on it. It Said

Failed to load the JNI shared library "C:\Program Files (86)\Java\jre6\bin\client\jvm.dll"

i have JDK1.6 update 26 and JRE6 update 26 installed. and i have jvm.dll in the directory it said. i just need a Lil help
Re: Problem running eclipse "Failed to load the JNI shared library" [message #692728 is a reply to message #692198] Tue, 05 July 2011 06:08 Go to previous message
boyd is currently offline boydFriend
Messages: 1
Registered: July 2011
Junior Member
Andrew,

I had the same problem with the same files(on Redmond 7x64bit). My nix box had no problem...but it was all 64 bit. In my case, I was using the 32 bit jre (with JDK 1.6.0_26) with 64 bit eclipse.

There is discussion of this in '2010 & '09 answered (thanks!! Eric Rizzo).
The readme for the 3.7 CDT install also explains it in section 3.1.2.

Long story short, the 32/64bit versions of Java and Eclipse must match.

Java versions (OS, 32/64bit, and features) are available at www.oracle.com/technetwork/java/javase/downloads/index.html

See: wiki.eclipse.org/Eclipse.ini
The wiki and other sources recommend to mapping eclipse to the java install you want to use.

An example win version is below:
(c:\glassfish will not by typical)
------------------------

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v2
0110502-productorg.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\glassfish3\jdk\jre\bin\
--launcher.defaultAction
openFile
-vmargs
-Dosgi.required
JavaVersion=1.5
-Xms40m
-Xmx384m
----------------------------------------
As for me...I made these changes...and all has been well since.

Best of luck.

Previous Topic:How to use the wildcard character * in templates
Next Topic:Library(container) not getting reflected in Java build path page
Goto Forum:
  


Current Time: Thu Apr 25 20:07:24 GMT 2024

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

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

Back to the top