java - 当我启动 Eclipse 时退出代码=127

标签 java eclipse

我已经安装了 Ubuntu 10.10、Eclipse Juno 和 Java 1.7。

首先,当我尝试启动 Eclipse 时,最后一个告诉我,我的计算机上不存在 java 运行时环境。因此,我在 Eclipse 目录中创建了 deux others 目录(jre/bin),并将 java 的 bin 目录中的所有文件放入其中。

之后,当我开始时,我遇到了以下错误:

JVM terminated. Exit code=127
/home/dark0502/Desktop/eclipse/jre/bin/java
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/dark0502/Desktop/eclipse//plugin/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/dark0502/Desktop/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
-launcher /home/dark0502/Desktop/eclipse/eclipse
-name Eclipse
--launcher.library /home/dark0502/Desktop/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807/eclipse_1502.so
-startup /home/dark0502/Desktop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 248015
-product org.eclipse.epp.package.java.product
-vm /home/dark0502/Desktop/eclipse/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/dark0502/Desktop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar `

你有解决办法吗?

谢谢

最佳答案

网上一搜,好像已经有报道了:

http://www.linuxquestions.org/questions/linux-software-2/eclipse-juno-start-up-error-127-a-4175418488/

建议的解决方案是:

I figured it out. I installed JDK7 and was under the impression that it would also install JRE with it. Whenever I went to anything that used Java it said it was using 7 so I assumed it must have. I guess the difference between the JDK and the JRE installed caused it to not work

关于java - 当我启动 Eclipse 时退出代码=127,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19455305/

相关文章:

java - 如何在 toast 中显示剪贴板复制的文本

java - XML 文档转换 StackOverflowError

c++ - 静态指针对函数的 undefined reference

java - 无法创建 AVD - Eclipse、MAC OSX、Android 4.4.2

java - 我的 Face 类似乎不是不可变的,即使我已经将其声明为最终的,我该如何更正它?

java - 设置 Java 环境 (Apache Tomcat) 以编码 UTF-8

java - 如何从注释处理器读取枚举常量的值?

java - KeyPairGenerator 无法解析

java - 我的星号框程序无法正常工作

java - 如何完全禁用 TextArea 对象的默认 Cursor.TEXT