简体   繁体   中英

Eclipse - Failed to load the JNI shared library

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)

好吧,它以某种方式使用了32位版本的Eclipse ......

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"

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

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

如果你有64位操作系统窗口,试着下载这个。希望它能工作:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM