简体   繁体   English

Eclipse运行失败-错误代码13并且无法加载JNI共享库

[英]Eclipse run fail - Error code 13 and Failed to load JNI shared library

I'm having problems to run eclipse in my job - at my home desktop I got everything as a 64 bit version. 我在工作中无法运行eclipse时遇到问题-在我的家用台式机上,我获得了所有的64位版本。 What I did was copy the folders to my job desktop and it doesn't. 我所做的是将文件夹复制到我的工作桌面,但没有。 I checked the architecture here and it's 64 bits too. 我在这里检查了体系结构,它也是64位。 The failure come from both sides: 失败来自双方:

If I set my virtual machine as: 如果我将虚拟机设置为:

C:\\jre7\\bin\\javaw.exe C:\\ jre7 \\ BIN \\ javaw.exe的

I receive the error from code 13. 我收到来自代码13的错误。

If I set the virtual machine as 如果我将虚拟机设置为

C:\\jre7\\bin\\client\\jvm.dll C:\\ jre7 \\ BIN \\客户\\ jvm.dll的

I receive the error from "Can't load shared library" 我收到“无法加载共享库”的错误消息

my source researches were : 我的来源研究是:

  1. Failed to load the JNI shared Library (JDK) 无法加载JNI共享库(JDK)
  2. Eclipse reported "Failed to load JNI shared library" Eclipse报告“无法加载JNI共享库”
  3. Cannot run Eclipse; 无法运行Eclipse; JVM terminated. JVM已终止。 Exit code=13 退出代码= 13
  4. Can't start Eclipse - Java was started but returned exit code=13 无法启动Eclipse-Java已启动,但返回了退出代码= 13
  5. Eclipse crashes at startup; Eclipse在启动时崩溃; Exit code=13 退出代码= 13

Resuming: 恢复:

Home desktop - Windows 64, JRE 64, Eclipse Juno 64 家用台式机-Windows 64,JRE 64,Eclipse Juno 64

Job desktop - Windows 64, JRE 64, Eclipse Juno 64 作业桌面-Windows 64,JRE 64,Eclipse Juno 64

Anyone got any idea of what I could do? 有人知道我能做什么吗? Cos with my research everything I tryed was in vain. 由于我的研究,我所做的一切都是徒劳的。

Try installing the Java Development Kit JDK. 尝试安装Java Development Kit JDK。 You probably only have the JRE installed. 您可能只安装了JRE This has happened to me before and thats how I fixed it. 这以前发生在我身上,这就是我如何解决它。

http://www.oracle.com/technetwork/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/index.html

I have encountered this issue. 我遇到了这个问题。 My reason is I have some other softwares(like oracle) includes some version of JVM, but don't have JNI. 我的原因是我还有一些其他软件(例如oracle)包括某些版本的JVM,但没有JNI。 And the installation of that kind of software add something to my Path variable. 此类软件的安装为Path变量添加了一些内容。 Then eclipse search that path and failed. 然后蚀搜索该路径并失败。

Please examine your Path enviroment variable and see if exists any wrong path in front of the correct JVM path, or just try to move your JVM bin path in front of all the others. 请检查您的Path环境变量,看看在正确的JVM路径之前是否存在任何错误的路径,或者只是尝试将JVM bin路径移到所有其他路径的前面。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM