简体   繁体   English

Java-无法加载JNI共享库(JDK)

[英]Java - Failed to Load the JNI shared Library (JDK)

I am trying to launch an application (not Eclipse) that was written in Java. 我正在尝试启动用Java编写的应用程序(不是Eclipse)。 When I do, I get an error that says "Failed to Load the JNI shared Library (JDK)" along with a path that points to the location of the file. 当我这样做时,出现一条错误消息“无法加载JNI共享库(JDK)”以及指向文件位置的路径。

From searching Google and StackOverflow, all I can find are people saying that the Java version installed needs to match my machine. 通过搜索Google和StackOverflow,我发现所有人都说安装的Java版本需要与我的机器匹配。 My machine is 64 bit and so is my java installation, so I don't think that is my issue. 我的机器是64位的,我的Java安装也是,所以我认为这不是我的问题。

I have also verified that C:\\Program Files\\Java\\jre7\\bin is in my path variable. 我还验证了C:\\ Program Files \\ Java \\ jre7 \\ bin在我的路径变量中。 Also, just for the record, I do not use Eclipse. 另外,仅作记录用途,我不使用Eclipse。 I have also tried uninstalling and reinstalling Java an the application that was written in Java. 我还尝试过卸载和重新安装Java以及用Java编写的应用程序。 Lastly, the file it is complaining about exists on the machine. 最后,它抱怨的文件存在于机器上。

Does anyone know what else could be the cause of this problem? 有谁知道可能是这个问题的原因吗?

Update: 更新:

Thanks for your responses. 感谢您的回复。 I got it resolved, but the resolution seems like more of a hack and goes against what I was reading earlier. 我解决了,但是解决方案似乎更像是破解,与我之前阅读的内容背道而驰。 I installed the 32 bit version of Java 7 along side of my 64 bit version of Java 7. I then added the path the 32 bit version to the system path variable. 我在Java 7的64位版本旁边安装了Java 7的32位版本,然后将32位版本的路径添加到系统路径变量中。

After I did this, the application was able to launch. 完成此操作后,该应用程序即可启动。 Is there an issue with having both 64 bit and 32 bit versions of Java 7 installed simultaneously? 同时安装64位和32位版本的Java 7是否存在问题?

This is an error from your application. 这是您的应用程序中的错误。 The application uses JNI. 该应用程序使用JNI。 It is complaining that it cannot load it. 它抱怨它无法加载它。 Why it says (JDK) only its author knows. 为什么说(JDK)仅其作者知道。 You will have to ask the author. 您将不得不问作者。

There is no problem having both versions of Java installed. 安装两个版本的Java都没有问题。 However, the application you were using probably shipped with a 32-bit version of the JNI library. 但是,您正在使用的应用程序可能附带了32位版本的JNI库。 So, it needed to be used with a 32-bit Java JRE. 因此,它需要与32位Java JRE一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 BIRT - 无法加载 JNI 共享库 (JDK) - BIRT - Failed to load the JNI shared Library (JDK) 加载 JNI 共享库 (JDK) 失败 - Failed to load the JNI shared Library (JDK) "加载 JNI 共享库失败" - Failed to load JNI shared library 无法加载JNI共享库“ C:\\ Program Files \\ Java \\ jdk1.7.0_40 \\ bin \\ .. \\ jre \\ bin \\ server \\ jvm.dll” - Failed to load the JNI shared library “C:\Program Files\Java\jdk1.7.0_40\bin\..\jre\bin\server\jvm.dll” 无法加载JNI共享库“ C:\\ Program Files \\ Java \\ jdk \\ 1.7.0_45 \\ bin \\ ... \\ jre \\ bin \\ server \\ jvm.dll” - Failed to load JNI shared library “C:\Program Files\Java\jdk\1.7.0_45\bin\…\jre\bin\server\jvm.dll” Eclipse:-无法加载JNI共享库- - Eclipse: -Failed to load the JNI shared library- Eclipse - 无法加载JNI共享库 - Eclipse - Failed to load the JNI shared library Eclipse:无法加载JNI共享库“C:\ Program Files(x86)\ Java \ jdk1.7.0_15 \ bin \ .. \ jre \ bin \ client \ jvm.dll - Eclipse: Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.7.0_15\bin\..\jre\bin\client\jvm.dll MuleStudio-错误失败,无法加载JNI共享库 - MuleStudio - Error failed failed to load the JNI shared library '未能加载 JNI 共享库“C:\\Program Files\\Java\\jre7\\bin\\client\\jvm.dll”' - 'Failed to load the JNI shared library “C:\Program Files\Java\jre7\bin\client\jvm.dll” '
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM