Failed to load the JNI shared library遇到的坑

Failed to load the JNI shared library

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
指向你拷贝进去的jdk的bin的javaw.exe文件,就可以了
Failed to load the JNI shared library遇到的坑
就搞定了。
Failed to load the JNI shared library遇到的坑