Failed to load the jni shared library jvm dll что делать
Community
Participate
Eclipse IDE
What Causes the ‘Failed to Load the JNI Shared Library’ Error?
The problem is often caused by one or two common issues which are shared among many users who have reported the problem online. Still, there are several ways to deal with the same problem. Check out the list below:
- Mismatching versions of Eclipse and Java Runtime – Both programs must be either 64-bit or 32-bit or this error is bound to appear. Resolve the problem by switching both programs to the same format.
- Both the 32-bit and 64-bit versions of Java installed – Eclipse might try to access the wrong one and you should guide it to the proper version by manipulating the Path variable.
- Eclipse is unaware of the installation folder of Java – You should clarify the confusion by including it in the eclipse.ini file.
Uninstalling Java on Windows 10
- Click on the Start menu button located at the bottom left part of your screen. Select Settings by clicking on the gear icon above the Power button in Start menu.
- Select Apps section in the Settings app. Select Java from the list of installed apps and then click its Uninstall
- Respond to the instructions displayed on screen to complete the uninstall process.
39 Answers 39
You need a 64-bit trio:
Explaination: Imagine native code (DLL) being loaded into an application. Now imagine a 32bit function wants to call a 64bit one, or alike. Same with alignment and datasizes and everything. I guess I dont have to tell anything more =P
Correctly! My laptop is running on x64 OS but I installed x86 JDK. Just installed x64 jdk and the issue go away. Thanks.
This answer is actually not totally accurate. You do not need to run 64-bit JDK and 64-bit Eclipse if you're on a 64-bit OS. 64-bit OS can just as well run a combo of 32-bit Java + 32-bit Eclipse. What must match is the bittedness of JRE/JDK and Eclipse.
@E-Riz You are right, a correct answer can also be "take a 32-bit eclipse!". But is it a good answer?
@Tarik yes, its 2015 and unfortunatelly the Visual Page Editor(VPE) of JBoss Tools still awaiting since years for a 64-bit upgrade. Look at the "Working-Pairs" answer below, at the second pair. The JBoss Tools-Plug-in is bound to the same architecture you downloaded Eclipse. So Eclipse(with the JBossTools) must be 32bit, the JDK must be 32bit and the OS can be 64 bit. A 64bit eclipse does currently not work with JBoss Tools. I remember a project called JBossIDE that works using Eclipse, you shall use this instead of install JBossTools into eclipse. Shame on you JBoss, shame on mozilla too.
I had several JDKs and JREs installed.
Each of them had their own entry in the PATH variable, all was working more or less.
Judging from the PATH variables, some installations were completely useless, since they were never used. Of course, the "inactive" Javas could be referenced manually from within Eclipse if I needed, but I never did that, so I really did not need them. (At least I thought so at that time. )
I cleaned up the mess, deinstalled all current Java's, installed only JDK + JRE 1.7 64-bit.
One of the Eclipse 'installations' failed afterwards with the Failed to Load the JNI shared Library and a given path relative to the fresh installed JDK where it thought the jvm.dll to be.
The failing Eclipse was the only one of all my IDEs that was still a 32-bit version on my otherwise all-64-bit setup.
Adding VM arguments, like so often mentioned, in the eclipse.ini was no use in my case (because I had only the wrong JDK/JRE to relate to.)
I was also unable to find out how to check if this Eclipse was a 32-bit or 64-bit version (I could not look it up in the Task Manager, since this Eclipse 'installation' would not start up. And since it had been a while since I had set it up, I could not remember its version either.)
In case you use a newer JDK and a older JRE you might be in for trouble, too, but then it is more likely a java.lang.UnsupportedClassVersionError appears, IIRC.
I'm trying to install Eclipse. I have done the following in order to install.
Installed JDK 7u15 64 bit (actual download name:jdk-7u15-windows-i586.exe) in C:\Program Files(x86)\Java\JDK 1.7.0_15
I Ran cmd in administrator and typed "C:\Users\Alfred>java -version" which gave me "Java version "1.7.0_15" java(TM) SE Runtime Enviroment (build 1.7.0_15-b03) Java Hotspot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
Both these last two points should mean my path is set to the right place correct?
I downloaded eclipse IDE for Java developers 64 bit (actual download name:eclipse-java-juno-SR1-win32-x86_64.zip) and unzipped it to my desktop
I've tripled checked that my system is 64 bit(Start>Control Panel>System>System type:64 bit operating system)
I've found and deleted java.exe and javaw.exe from C:\windows\system32 which resolved the error message "C:\Program Files\Java\jre7\lib\amd64\jvm.cfg'
My problem as of now is the following error message when i try to start eclipse:
- Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.7.0_15\bin..\jre\bin\client\jvm.dll
I've made sure that this .dll file is there. I have looked around and everyone says to make sure everything is 64 bit. I have no clue what to do now. How I fix? Any and all help is greatly appreciated.
Solution 1: Edit the ‘eclipse.ini’ File
This specific problem can occur of the installation of Eclipse fails to understand just what the correct path to the executable might be. That can be resolved easily simply by adding a line inside the Eclipse configuration file available in the installation directory. Make sure you follow the instructions below in order to resolve the problem.
- Navigate to the folder’s location in the File Explorer simply by opening a folder and clicking This PC or My Computer from the left navigation pane or by searching for this entry in the Start menu.
- In This PC or My Computer, double-click to open your Local Disk and navigate to the installation directory of Java Development Kit. After locating the Java folder, navigate to jrex.x.xx > bin and locate the ‘jawaw.exe’ file. Click the address bar and copy the full address to Clipboard. The ‘x.x.xx‘ placeholder represents the version of Java you have installed.
- Navigate to the Eclipse’s installation folder. The correct location can also be found after right-clicking the Eclipse shortcut and choosing the Open file location option from the context menu.
- Right-click the file called named ‘eclipse.ini’ and choose to open it with Notepad. Make sure you navigate to the top of the file and paste the lines below in order to resolve the problem. Make sure you also replace our placeholder address with the address you found out in the first part of the solution:
- Try running the program again and check to see if the ‘failed to load the JNI shared library’ error comes up.
Breadcrumbs
I am getting the following error message when I try to run explipse:
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
My ini is as follow
My computer return the following from "java -version"
Please let me know if you have any thoughts about how to resolve this.
I had encountered the same error in my Windows 7 64-bit OS. I just uninstalled the jdk and did a fresh install from web to make sure that I installed the 64-bit version of jdk. This resolved the issue. Hope this helps.
I got the same error message since I didn't have 64 bit Java and I was trying to run 64 bit version of Eclipse. Download and install the correct Java version.
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.
Maybe the command "java -version" will tell you, I'm not sure and don't
have a Windows PC available to try.
I suspect it's 32-bit because your path includes "Program Files (x86)"
which, IIRC, is where Windows 64 installs 32-bit programs.
Hope this helps,
Eric
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:
Either change the version of Eclipse or the version of Java to be compatible.
That would help people go straight to the solution.
My configuration is:-
Window 2007(64 bit) premium Edition.
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
But now i wanna to know i have to installed jdk for 64 bit.
So after that i shall be able to resolve these problem.
Thanks guys.Now i shall update the Java for 64 bit version and then inform all you is problem fixed or not..
I am using windows 7 64 bit. I downloaded the jdk 64 bit version from oracle onto my laptop but for some reason windows loaded it in the Program (x86) directory rather than the regular C:\Program directory. Then I downloaded Eclipse classic 64 bit version. I received all kinds of errors. After putting the jdk path(not classpath!) in the environment variables I was still getting error messages. I even went to the eclipse.ini file to make sure it was pointing to the -vm path. I still got error messages.
I saw references in the forums about these issues and then I came across one that said you need to match up the java jre installation to the eclipse installation. Since windows put java\bin in the Programs (x86) directory I decided to delete the Eclipse 64bit version and just downloaded the 32bit version. Voila! it worked like a charm.
I have no idea why windows 7 64bit will download to the 32 bit directory, but it does.
I hope this helps.
This is an indication that you installed the 32 bit JDK. The JDK
installer will put the 32 bit jdk in the x86 directory.
You must have downloaded the 32 bit version from Oracle not the 64 bit
version.
> Then I downloaded Eclipse classic 64 bit version. I received all kinds
> of errors. After putting the jdk path(not classpath!) in the environment
> variables I was still getting error messages. I even went to the
> eclipse.ini file to make sure it was pointing to the -vm path. I still
> got error messages.
>
> I saw references in the forums about these issues and then I came across
> one that said you need to match up the java jre installation to the
> eclipse installation. Since windows put java\bin in the Programs (x86)
> directory I decided to delete the Eclipse 64bit version and just
> downloaded the 32bit version. Voila! it worked like a charm.
>
> I have no idea why windows 7 64bit will download to the 32 bit
> directory, but it does.
>
> I hope this helps.
VARIABLE VALUE DEPENDING ON 32 or 64.
5.Important
32 Bit ECLIPSE -32 Bit Java SDK
64 Bit ECLIPSE -64 Bit Java SDK
6.ENJOY
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
I had encountered the same error in my Windows 7 64-bit OS. I just uninstalled the jdk and did a fresh install from web to make sure that I installed the 64-bit version of jdk. This resolved the issue. Hope this helps.
This worked!! Thanks. If it's 64 bit Eclipse you've installed, you need the 64 bit JRE (JRE 6u45 is what I have).
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.
suggests that you should instead have:
Ive 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.
When I try opening Eclipse, a pop-up dialog states:
Failed to load the JNI shared library "C:/JDK/bin/client/jvm.dll"`.
Following this, Eclipse force closes.
Here's a few points I'd like to make:
- I checked to see if anything exists at that path. It does exist.
- My Eclipse and Java SE Development Kit are both 64-bit. I checked my system, and it can handle 64-bit.
- I've searched for this problem on Google and on Stack Overflow, and the only answer I found was to download the 32-bit versions of JDK and Eclipse.
Downloading the 32-bit versions is something I only want to do as a very last resort.
What would be suggested to solve this issue?
I had, to my surprise, 5 or so Java installed onto my computer. Not only that, but it turned out that I downloaded the 32-bit Eclipse by accident. So, I uninstalled every Java I had, deleted Eclipse (Eclipse doesn't have an "uninstall"), and downloaded Eclipse Classic 64-bit for my machine, along with a 64-bit Java (see SPP's answer for that link).
Also: if anyone has trouble "deleting" their Eclipse (e.g. the folder won't go away no matter how many times you remove it manually or via command prompt), try deleting it using safe mode with command prompt.. I have no idea why I had to do this, but that ended up working.
@MikeGates I had that problem too, used LockHunter. Obnoxious. Getting this tool to run on Windows is way too much work.
hey. if you DO have 64-bit version of all of the below stated software, just try deleting the 'eclipse.ini' file. worked for me:)
Uninstalling Java on Previous Versions of Windows
- Click on the Start menu button located at the bottom left part of your screen.
- Select Control Panel from Start menu and switch the View by option to Category. Select Uninstall a Program under the Programs section.
- Select Java from the list of installed programs by clicking on it, and then click the Uninstall Follow the instructions on the screen to complete the wizard.
7 Answers 7
jdk-7u15-windows-i586.exe is not 64bit.
Reinstall Java 7 for 64 bits.
now why would that happen i followed direction correctly so how did i end up installing something that wasn't 64 bit hmmmmm
There is no difference between JDKs for different windows versions. There are only different versions for 32/64 bits. Download directly from Oracle site. Type: "java jdk" in google and use first results.
If you have 64bit java installed (you are running 64bit windows and you have c:\program files\java\jre7 for example - not program files (x86) !) but you still get this error, it is likely that the first java on your path is 32bit.
(You can check this by running java -version from cmd.exe, if you don't see the text 64-bit [eg Java HotSpot(TM) 64-Bit ] then you have 32bit java first on your path.)
If you have many copies of eclipse (perhaps for blackberry 7 development) then changing your path(s) to point to the 64bit java could cause you big headaches.
Instead, you can edit the eclipse.ini file (in the eclipse directory of the Android SDK) and add the following lines:
Below they are shown in the context of the whole file:
This instructs eclipse.exe where it can find the java VM, without relying on the system environment variables.
Eclipse is an open source project which uses a Java plugin system to allow programmers programming in different languages to work together easily. It’s available for many platforms as well. The error mentioned in the title of the article is an error which appears after users try to open Eclipse on their Windows PC.
Failed to Load the JNI Shared Library
Eclipse usually just closes afterward. The problem often appears as soon as users install and run Eclipse. There have been many different methods used to resolve this problem and that is why we have gathered them in a single article for you to check out!
Installing Java
There are two ways of installing Java. You can either use the online installer which only downloads a small file which is used to download the entire program or you can download the entire package and install it without an active Internet connection. Here is how to install it offline:
- Go to the Manual download page and click on Windows Offline. Make sure you differentiate between Windows Offline which is the 32-bit version and Windows Offline (64-bit) which is obviously the 64-bit version.
- The File Download dialog box appears prompting you to run or save the download file Click Save to download the file to your local system.
- Close all applications including your browser and double-click on the saved file to start the installation process. Click the Install button to accept the license terms and to continue with the installation.
- Oracle has partnered with companies that offer various products. The installer may present you with an option to install these programs when you install Java. After ensuring that the desired programs are selected, click the Next button to continue the installation.
- A few brief dialogs confirm the last steps of the installation process; click Close on the last dialog. This will complete the Java installation process. Check to see if the problem still appears after you match the versions of Eclipse and Java Runtime.
Breadcrumbs
I am getting the following error message when I try to run explipse:
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
My ini is as follow
My computer return the following from "java -version"
Please let me know if you have any thoughts about how to resolve this.
I had encountered the same error in my Windows 7 64-bit OS. I just uninstalled the jdk and did a fresh install from web to make sure that I installed the 64-bit version of jdk. This resolved the issue. Hope this helps.
I got the same error message since I didn't have 64 bit Java and I was trying to run 64 bit version of Eclipse. Download and install the correct Java version.
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.
Maybe the command "java -version" will tell you, I'm not sure and don't
have a Windows PC available to try.
I suspect it's 32-bit because your path includes "Program Files (x86)"
which, IIRC, is where Windows 64 installs 32-bit programs.
Hope this helps,
Eric
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:
Either change the version of Eclipse or the version of Java to be compatible.
That would help people go straight to the solution.
My configuration is:-
Window 2007(64 bit) premium Edition.
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
But now i wanna to know i have to installed jdk for 64 bit.
So after that i shall be able to resolve these problem.
Thanks guys.Now i shall update the Java for 64 bit version and then inform all you is problem fixed or not..
I am using windows 7 64 bit. I downloaded the jdk 64 bit version from oracle onto my laptop but for some reason windows loaded it in the Program (x86) directory rather than the regular C:\Program directory. Then I downloaded Eclipse classic 64 bit version. I received all kinds of errors. After putting the jdk path(not classpath!) in the environment variables I was still getting error messages. I even went to the eclipse.ini file to make sure it was pointing to the -vm path. I still got error messages.
I saw references in the forums about these issues and then I came across one that said you need to match up the java jre installation to the eclipse installation. Since windows put java\bin in the Programs (x86) directory I decided to delete the Eclipse 64bit version and just downloaded the 32bit version. Voila! it worked like a charm.
I have no idea why windows 7 64bit will download to the 32 bit directory, but it does.
I hope this helps.
This is an indication that you installed the 32 bit JDK. The JDK
installer will put the 32 bit jdk in the x86 directory.
You must have downloaded the 32 bit version from Oracle not the 64 bit
version.
> Then I downloaded Eclipse classic 64 bit version. I received all kinds
> of errors. After putting the jdk path(not classpath!) in the environment
> variables I was still getting error messages. I even went to the
> eclipse.ini file to make sure it was pointing to the -vm path. I still
> got error messages.
>
> I saw references in the forums about these issues and then I came across
> one that said you need to match up the java jre installation to the
> eclipse installation. Since windows put java\bin in the Programs (x86)
> directory I decided to delete the Eclipse 64bit version and just
> downloaded the 32bit version. Voila! it worked like a charm.
>
> I have no idea why windows 7 64bit will download to the 32 bit
> directory, but it does.
>
> I hope this helps.
VARIABLE VALUE DEPENDING ON 32 or 64.
5.Important
32 Bit ECLIPSE -32 Bit Java SDK
64 Bit ECLIPSE -64 Bit Java SDK
6.ENJOY
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
I had encountered the same error in my Windows 7 64-bit OS. I just uninstalled the jdk and did a fresh install from web to make sure that I installed the 64-bit version of jdk. This resolved the issue. Hope this helps.
This worked!! Thanks. If it's 64 bit Eclipse you've installed, you need the 64 bit JRE (JRE 6u45 is what I have).
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.
suggests that you should instead have:
Ive 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.
When I try opening Eclipse, a pop-up dialog states:
Failed to load the JNI shared library "C:/JDK/bin/client/jvm.dll"`.
Following this, Eclipse force closes.
Here's a few points I'd like to make:
- I checked to see if anything exists at that path. It does exist.
- My Eclipse and Java SE Development Kit are both 64-bit. I checked my system, and it can handle 64-bit.
- I've searched for this problem on Google and on Stack Overflow, and the only answer I found was to download the 32-bit versions of JDK and Eclipse.
Downloading the 32-bit versions is something I only want to do as a very last resort.
What would be suggested to solve this issue?
I had, to my surprise, 5 or so Java installed onto my computer. Not only that, but it turned out that I downloaded the 32-bit Eclipse by accident. So, I uninstalled every Java I had, deleted Eclipse (Eclipse doesn't have an "uninstall"), and downloaded Eclipse Classic 64-bit for my machine, along with a 64-bit Java (see SPP's answer for that link).
Also: if anyone has trouble "deleting" their Eclipse (e.g. the folder won't go away no matter how many times you remove it manually or via command prompt), try deleting it using safe mode with command prompt.. I have no idea why I had to do this, but that ended up working.
@MikeGates I had that problem too, used LockHunter. Obnoxious. Getting this tool to run on Windows is way too much work.
hey. if you DO have 64-bit version of all of the below stated software, just try deleting the 'eclipse.ini' file. worked for me:)
Solution 2: Make Sure Eclipse and Java Versions Match
If you are using a 64-bit version of Eclipse, you should also make sure you install the 64-bit version of Java Runtime. The same goes for the 32-bit version. Make sure you follow the instructions below in order to uninstall the one and install the second option.
Solution 3: Remove the Path Variable for Java
If you have both the 32-bit and the 64-bit version of Java installed on your computer, Eclipse may get confused trying to figure out which one to use. For example, if a 64-bit version of Eclipse tries to use the 32-bit version of Java, a problem will appear. This can be resolved without uninstalling one version of Java simply by deleting its Path variable. Make sure you follow the instructions below carefully.
когда я пытаюсь открыть затмение всплывающее окно гласит:
не удалось загрузить общую библиотеку JNI "C:/JDK/bin/client/jvm - . файл DLL.`"
после этого, сила затмения закрывается.
вот несколько моментов, которые я хотел бы сделать:
- Я проверил, существует ли что-нибудь на этом пути. Она существует.
- мой Eclipse и Java SE Development Kit оба 64-битные. Я проверил . система, и она может обрабатывать 64-бит.
- Я искал эту проблему в Google и при переполнении стека, и единственным ответом, который я нашел, было загрузить 32-разрядные версии JDK и Eclipse.
загрузка 32-битных версий-это то, что я хочу сделать только в крайнем случае.
Что было бы предложено для решения этого вопроса?
вам нужно 64-битное трио:
- 64-разрядная ОС
- 64-разрядная Java
- 64-разрядной затмение
- 32-разрядная ОС-32-разрядная JDK-32-разрядная Eclipse (только 32-разрядная версия)
- 64-разрядная ОС-32-разрядная JDK-32-разрядная Eclipse
- 64-разрядная ОС-64-разрядная JDK-64bit Eclipse (только 64-разрядная версия)
у меня было установлено несколько JDKs и JREs.
у каждого из них была своя запись в переменной PATH, все работало более или менее.
судя по переменным пути, некоторые установки были совершенно бесполезны, так как они никогда не использовались. Конечно, на" неактивные " Javas можно ссылаться вручную из Eclipse, если мне нужно, но я никогда этого не делал, поэтому они мне действительно не нужны. (По крайней мере, в то время я так думал. )
я очистил беспорядок, деинсталлировал все текущие Java, установил только JDK + jre 1.7 64-бит.
одна из "установок" Eclipse впоследствии не удалась с Failed to Load the JNI shared Library и заданный путь относительно свежий установленный JDK, где он думал jvm.dll быть.
сбой Eclipse был единственным из всех моих IDEs, который все еще был 32-разрядной версией на моей в противном случае все-64-разрядной установке.
добавление аргументов VM, как часто упоминалось, в eclipse.ini не было пользы в моем случае (потому что у меня был только неправильный JDK/JRE для связи.)
я также не смог узнать, как проверить, было ли это затмение 32-разрядной или 64-разрядной версией (I не мог найти его в Диспетчер Задач, так как эта "установка" Eclipse не запускается. И так как прошло много времени с тех пор, как я установил его, я тоже не мог вспомнить его версию.)
в случае, если вы используете более новый JDK и более старый JRE вы можете быть в беде, тоже, но тогда это скорее java.lang.UnsupportedClassVersionError появляется IIRC.
убедитесь, что ваше затмение.ini файл содержит следующие строки.
мое затмение.ini например:
используйте OS и Eclipse оба 64 бит или оба 32 бит держать же и config затмение.ini.
Читайте также: