虚拟机终止。退出代码=13

发布于 2025-01-07 18:09:16 字数 1219 浏览 0 评论 0原文

你好,刚才我换成centos 5.7,我安装了java。我确信它运行良好,我从终端检查了 javac 和 java 命令。但是当我尝试启动 eclipse 时,有人说

必须有 Java 运行时环境 (JRE) 或 Java 开发工具包 (JDK) 以便运行 Eclipse。没有找到Java虚拟机 搜索以下位置后: /home/seed/app/jre1.5.0_10/bin

当我从终端运行 /eclipse -vm /home/seed/app/jre1.5.0_10/bin 命令时。如果我从文件系统在 eclipse 中打开,则会出现以下错误。

VM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/developer/Softwares/eclipse/eclipse
-name Eclipse
--launcher.library /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505/eclipse_1407.so
-startup /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata 68801a
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

Hi just now i changed to centos 5.7 i was installed java. I am sure about that it is working well i checked it javac and java commands from terminal.But when i was trying to launch eclipse is says some says that

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be
available in order to run Eclipse. No Java virtual machine was found
after searching the following locations:
/home/seed/app/jre1.5.0_10/bin

.

When i was run /eclipse -vm /home/seed/app/jre1.5.0_10/bin command from terminal.If i open in eclipse from filesystem it gives following error.

VM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/developer/Softwares/eclipse/eclipse
-name Eclipse
--launcher.library /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505/eclipse_1407.so
-startup /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata 68801a
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/developer/Softwares/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

棒棒糖 2025-01-14 18:09:16

我遇到了同样的问题,结果安装程序创建的快捷方式设置为
/eclipse/ 而不是 /eclipse64/

I had the same problem, turns out the shortcut made by the installer was set to
/eclipse/ instead of /eclipse64/.

美人如玉 2025-01-14 18:09:16

打开 eclipse.ini 并在文件开头键入以下内容。

-vm
/path/to/java/bin/javaw

Open eclipse.ini and type the following at the beginning of the file.

-vm
/path/to/java/bin/javaw
为人所爱 2025-01-14 18:09:16

32位的eclise不兼容的问题,而我的机器是64位的,最后我通过从以下位置下载64位eclipse解决了这个问题:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/发布/indigo/SR1/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

Problem with incompatible eclise that is 32 bit and my machine is 64 bit finally i solved this By downloading 64 bit eclipse from :http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文