Eclipse - Failed to load the JNI shared library

痴心易碎 提交于 2020-03-01 04:22:18

问题


Every time I try to start Eclipse, it says

Failed to load the JNI shared libraby "C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll"

I have no clue why this happens, because I reinstalled JDK, JRE and Eclipse multiple times. All the 64 bit version (I've got Windows 7 64 bit)


回答1:


Alright, it somehow worked using the 32 Bit version of Eclipse...




回答2:


If you have installed all 64 bit version of Eclipse and JDK, you can check your system environment variable. Probably you set on old JAVA_HOME path pointing to

"C:\Program Files (x86)\Java"




回答3:


I had the same problem: in my case everything was in fact 64-bit - 64-bit OS, 64-bit Eclipse and 64-bit JRE in use, so there was some confusion as to the origins of the issue...

What helped was correcting environmental variables JAVA_HOME and PATH - and pointing them directly to

.../My/Java/Location/bin

instead of

.../My/Java/Location



回答4:


If eclipse is 32bit then, eclipse.ini file specify -vm C:\Program Files (x86)\Java\jre\bin\javaw.exe

If eclipse is 64bit then, eclipse.ini file specify -vm C:\Program Files\Java\jdk\jre\bin\javaw.exe

Summary: specify compatible java version path ( 32 bit or 64 bit ). -vm %JAVA_HOME%\jre\bin\javaw.exe




回答5:


Just try to download this if you have 64 bit OS windows.Hope it will work :)



来源:https://stackoverflow.com/questions/19894100/eclipse-failed-to-load-the-jni-shared-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!