Failed to load the JNI shared Library
起因
本来eclipse运行的好好的,电脑更新了一下,启动eclipse的时候提示
Failed to load the JNI shared Library
解决方法
网上找了一大圈,都是说jdk的位数与eclipse的位数不一致,但是我之前是可以用的。
stackoverflow这里有解决方法。
确保你的eclipse的eclipse.ini里面有下面这一行
-vm
C:\Program Files\Java\jdk1.7.0_79\bin\javaw.exe
且要放到
-showsplash
org.eclipse.platform
这个配置的后面、
完整配置
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-vm
C:\Program Files\Java\jdk1.7.0_79\bin\javaw.exe
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m