简体   繁体   English

Eclipse - 无法加载JNI共享库

[英]Eclipse - Failed to load the JNI shared library

Every time I try to start Eclipse, it says 每当我尝试启动Eclipse时,它说

Failed to load the JNI shared libraby "C:\\Program Files (x86)\\Java\\jre7\\bin\\client\\jvm.dll" 无法加载JNI共享库“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. 我不知道为什么会这样,因为我多次重新安装JDK,JRE和Eclipse。 All the 64 bit version (I've got Windows 7 64 bit) 所有的64位版本(我有Windows 7 64位)

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

If you have installed all 64 bit version of Eclipse and JDK, you can check your system environment variable. 如果已安装所有64位版本的Eclipse和JDK,则可以检查系统环境变量。 Probably you set on old JAVA_HOME path pointing to 可能你设置了指向的旧JAVA_HOME路径

"C:\\Program Files (x86)\\Java" “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... 我遇到了同样的问题:在我的情况下,一切都是64位 - 64位操作系统,64位Eclipse和64位JRE正在使用中,所以对于问题的根源存在一些混淆......

What helped was correcting environmental variables JAVA_HOME and PATH - and pointing them directly to 有助于纠正环境变量JAVA_HOME和PATH - 并直接指向它们

.../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 如果eclipse是32bit那么,eclipse.ini文件指定-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 如果eclipse是64bit那么,eclipse.ini文件指定-vm C:\\ Program Files \\ Java \\ jdk \\ jre \\ bin \\ javaw.exe

Summary: specify compatible java version path ( 32 bit or 64 bit ). 摘要:指定兼容的java版本路径(32位或64位)。 -vm %JAVA_HOME%\\jre\\bin\\javaw.exe -vm%JAVA_HOME%\\ jre \\ bin \\ javaw.exe

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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