简体   繁体   English

Eclipse Kepler 无法启动 - Java 错误消息

[英]Eclipse Kepler won't start - Java error message

I have downloaded Eclipse Kepler on my work laptop, & have confirmed my Windows system is 64 compatible.我已经在我的工作笔记本电脑上下载了 Eclipse Kepler,并确认我的 Windows 系统兼容 64。 I also have Java 13 installed.我还安装了 Java 13。 When I go to start Eclipse for the first time, I get the following message: Failed to load the JNI shared library "C:Program Files\Java\jdk-13.0.1\bin\server\jvm.dll".我第一次启动go 启动Eclipse 时,收到以下消息: 无法加载JNI 共享库“C:Program Files\Java\jdk-13.0.1\bin\server\jvm.dll”。

Here's what I've noted so far: Java is installed on my machine under program files\java, but I noted there are 3 folders in there: jdk1.8.0_161 jdk-13.0.1 jre1.8.0_121这是我到目前为止注意到的内容:Java 安装在我的机器上的程序文件\java 下,但我注意到那里有 3 个文件夹:jdk1.8.0_161 jdk-13.0.1 jre1.8.0_121

I did update systems variables to point directly to the jdk-13.0.1 folder.我确实更新了系统变量以直接指向 jdk-13.0.1 文件夹。 Eclipse is in its own folder obviously, but not sure if I need to move anything around, or if having 2 JDK folders like that is causing an issue. Eclipse 显然在它自己的文件夹中,但不确定我是否需要移动任何东西,或者如果有 2 个这样的 JDK 文件夹会导致问题。 I'd try to uninstall Java, but this is a work machine so I'd need to wait for our Tech support department to open up tomorrow.我会尝试卸载 Java,但这是一台工作机器,所以我需要等待我们的技术支持部门明天开放。 I've contacted them twice & haven't been able to solve this & I'm getting desperate.我已经联系了他们两次,但都无法解决这个问题,我越来越绝望了。 Any tips?有小费吗?

Inside eclipse folder open the file eclipse.ini in notepad or notepad++ you can find required java version mentioned like在 eclipse 文件夹中打开文件 eclipse.ini 在记事本或记事本++中,您可以找到所需的 java 版本,如

-Dosgi.requiredJavaVersion=1.8

and add the following in the last.并在最后添加以下内容。 Before this, you have to close Eclipse (you can add your preferred jdk version).在此之前,您必须关闭 Eclipse(您可以添加您喜欢的 jdk 版本)。

-vm C:\Java\JDK\1.8.0\bin\javaw.exe

After making changes, you can start eclipse.修改后,可以启动eclipse。 For more details, refer this link.有关更多详细信息,请参阅此链接。 https://wiki.eclipse.org/Eclipse.ini https://wiki.eclipse.org/Eclipse.ini

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

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