安装eclipse时报failed to load the JNI

下载安装运行eclipse时,提示Failed to load the JNI shared libray,更改环境变量依然不行。
Failed to load the JNI shared libray参考网友帖子,查看eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.900.v20180922-1751
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
[email protected]/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM

版本要求JavaVersion=1.8,我的JDK是1.5所以不兼容。
解决方法:
1、更换JDK到最新版本1.8
2、更换下载旧版eclipse

猜你喜欢

转载自blog.csdn.net/timonium/article/details/88642106