今天为了解决原系统代码高度耦合的问题,特别从网站上下载了一个64位版本的Eclipse。
之后,在启动Eclipse的时候出现了问题,报错如下:
Failed to load the JNI shared library......
之后,试了多种方法都不行,就在我准备放弃的时候,我发现我同伴的机器可以使用,并且,他的机器配置和环境与我的机器所差无几。
唯一不同的是,他下载的是32位的eclipse。
因此,我发现,是因为eclipse版本和jdk版本不一致造成的问题。
那么,也就是说,32位的jdk配合32位的eclipse,64位的jdk配合64位的eclipse,其中,64位的jdk是否可以兼容32位的eclipse,这个我没有试验过,之后可以尝试。
结论:32位的jdk配合32位的eclipse。64位的jdk配合64位的eclipse。出现这个问题,可以通过修改eclispe版本达到目的。