简体   繁体   English

Eclipse 错误 JVM 终止。 退出代码=1 /usr/Java70/jre/bin/java

[英]Eclipse error JVM terminated. Exit code=1 /usr/Java70/jre/bin/java

I get a error like我得到一个错误

JVM terminated. Exit code=1
/usr/Java70/jre/bin/java
-Dosgi.requiredJavaVersion=1.7
-Xms512m
-Xmx1024m

My java version is:我的java版本是:

java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr9-20150417_01(SR9))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20150406_242981 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR9_20150406_1443_B242981
JIT  - tr.r11_20150401_88894
GC   - R26_Java726_SR9_20150406_1443_B242981_CMPRSS
J9CL - 20150406_242981)
JCL - 20150414_02 based on Oracle 7u79-b14

My eclipse.ini:我的eclipse.ini:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms512m
-Xmx512m

Linux version: Linux版本:

LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Red Hat Enterprise Linux Server release 6.6 (Santiago)

Why am I get that error and how can I solve it?为什么我会收到该错误,我该如何解决?

Ran java -jar plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar跑 java -jar plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar

java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED' failed.
JVMDUMP039I Processing dump event "abort", detail "" at 2015/06/30 21:51:32 - please wait.
JVMDUMP032I JVM requested System dump using '/root/Desktop/core.20150630.215132.10911.0001.dmp' in response to an event
JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.11074.

JVMDUMP010I System dump written to /root/Desktop/core.20150630.215132.10911.0001.dmp
JVMDUMP032I JVM requested Java dump using '/root/Desktop/javacore.20150630.215132.10911.0002.txt' in response to an event
JVMDUMP010I Java dump written to /root/Desktop/javacore.20150630.215132.10911.0002.txt
JVMDUMP032I JVM requested Snap dump using '/root/Desktop/Snap.20150630.215132.10911.0003.trc' in response to an event
JVMDUMP010I Snap dump written to /root/Desktop/Snap.20150630.215132.10911.0003.trc
JVMDUMP013I Processed dump event "abort", detail "".

This might happens if multiple Java instances have been installed.如果安装了多个 Java 实例,则可能会发生这种情况。 Run the following command -运行以下命令 -

sudo update-alternatives --config java

Then choose the correct java path and re-run the eclipse application.然后选择正确的java路径并重新运行eclipse应用程序。

First, I strongly recommend you use the webupd8 ppa , use following commands:首先,我强烈建议您使用webupd8 ppa ,使用以下命令:

1. sudo add-apt-repository ppa:webupd8team/java 1. sudo add-apt-repository ppa:webupd8team/java
2. sudo apt-get update 2. sudo apt-get update
3. sudo apt-get install oracle-java8-installer 3. sudo apt-get install oracle-java8-installer

Then to set it:然后设置它:

4. sudo update-java-alternatives -s java-8-oracle 4. sudo update-java-alternatives -s java-8-oracle

The advantage is ease of updates.优点是易于更新。

The problem was that whenever navigating to any workitem on RTC, that error occurred and eclipse crashed.问题是,每当导航到 RTC 上的任何工作项时,都会发生该错误并且 eclipse 崩溃。 Basically the UI did not appear or half appeared.基本上UI没有出现或出现了一半。 This was solved by adding the following to the last line in eclipse.ini :这是通过将以下内容添加到eclipse.ini的最后一行来解决的:

-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false

Try to put your java package in eclipse.ini尝试将您的 java 包放在 eclipse.ini 中

If you are using Ubuntu, the java path generaly is /usr/lib/jvm.如果您使用的是 Ubuntu,则 java 路径一般为 /usr/lib/jvm。 See:看:

-vm
/usr/lib/jvm/java-x-openjdk-amdxx/bin/java
-vmargs

Remember to put -vmargs after -vm记得把 -vmargs 放在 -vm 之后

So even I faced the same error when i installed the eclipse Oxygen into my system.因此,当我将eclipse Oxygen安装到我的系统中时,即使我也遇到了同样的错误。 I did the whole setup and configured it accordingly but when I tried to open the eclipse.desktop through MENU options or even tried running eclipse through the terminal, I encountered the error as above.我完成了整个设置并进行了相应的配置,但是当我尝试通过 MENU 选项打开eclipse.desktop甚至尝试通过终端运行 eclipse 时,我遇到了上述错误。 So here what I did :-所以在这里我做了什么:-

1) I modified eclipse.ini by adding :- Dorg.eclipse.swt.internal.gtk.cairoGraphics=false (still no luck , I faced the same error) 1)我通过添加:- Dorg.eclipse.swt.internal.gtk.cairoGraphics=false修改了eclipse.ini (仍然没有运气,我遇到了同样的错误)

2) Updated the java version by adding it alternatively by the adding these commands in the terminal 2)通过在终端中添加这些命令来交替添加它来更新java版本

sudo add-apt-repository ppa:webupd8team/java须藤添加-apt-repository ppa:webupd8team/java

sudo apt-get update sudo apt-get 更新

sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-installer

Hope it helps!!希望能帮助到你!! :) :)

This error had occurred to me , I have tried all the solutions above .这个错误发生在我身上,我已经尝试了上面的所有解决方案。 I had also tried removing the .ini file too .我也曾尝试删除 .ini 文件。 even that didnt help CONCLUSION There are some eclipse versions which support java version like 7,8,9 Hence u have to download eclipse according to ur jdk eclipse neon : java8 eclipse oxygen : java8 eclipse mars : java7 all the java versions have upward compatibility即使那没有帮助结论有一些 eclipse 版本支持 java 版本,如 7,8,9 因此你必须根据你的 jdk eclipse neon 下载 eclipse : java8 eclipse oxy : java8 eclipse mars : java7 所有的 java 版本都有向上兼容性图片来自eclipse官方页面

  • Open eclipse.ini file.打开 eclipse.ini 文件。
  • Delete the line "-vmargs"删除“-vmargs”行
  • Save it保存

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

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