Failed to load the JNI shared library
首先,jdk分为两种:一种是安装版,就是我们平时官网下载的exe
这种的话会在注册表注册,平时想要暂时更替jdk的话会比较麻烦
然后就是第二种,解压版。不会在注册表..,更替比较方便。毕竟有时工作需要
因为今天工作需求我把jdk换了1.8的安装版。我本来就是解压版的,然后
Failed to load the JNI shared library 这个错误出现了。搜了百度这个,说是JDK和eclipse的位数不同造成。按照里面的方法麻烦,我的情况好像还有问题。
然后同事说试着指定eclipse的配置文件指向jdk
在eclipse.exe同目录有一个eclipse.ini文件,在开始添加以下:
-vm
就搞定了。