eclipse java - crashing on linux - java

I am currently using openSuSE with XFCE and I installed Eclipse through YAST. Ecipse is version 3.4.0 and usually it crashes for no reason but I have been able to recreate the error when I write the the '.' in import java.io.*; and the 'err' in System.err.println();.This is the error message eclipse emits:
JVM terminated. Exit code=127
/usr/bin/java
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/lib64/eclipse//plugins/org.eclipse.platform_4.3.0.v20130605-2000/splash.bmp
-launcher /usr/lib64/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416/eclipse_1506.so
-startup /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-exitdata 1cd0022
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
java -version returns
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (suse-8.18.1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

You need to look at the .log file to resolve the problem. It is located in the workspace/.metadata/.log . It will tell you why it is crashing and will give you the stacktrace of the issue.

You might want to try adding
org.eclipse.swt.browser.DefaultType=mozilla
to eclipse.ini file.

Related

Eclipse Oxygen quits automatically on Ubuntu 14.04 with jvm exit code 1

I have come across a problem with my latest eclipse oxygen on Ubuntu 14.04 (installed within VMware). Each time after being launched for several minutes and operated on, it crashes.
This is the error message that always pops up:
JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /opt/eclipse//plugins/org.eclipse.epp.package.common_4.7.0.20170620-1800/splash.bmp
-launcher /opt/eclipse/eclipse
-name Eclipse
--launcher.library /opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133/eclipse_1624.so
-startup /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata cc0022
-product org.eclipse.epp.package.cpp.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
There is no .log file in .metadata folder the first time it crashes in a freshly-created workspace.
By entering in terminal file /etc/alternatives/java /etc/alternatives/javac, the output is:
/etc/alternatives/java: symbolic link to `/usr/lib/jvm/java-8-oracle/jre/bin/java'
/etc/alternatives/javac: symbolic link to `/usr/lib/jvm/java-8-oracle/bin/javac'
and java -version yields
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Also, in case it may be of any use, below is my eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
-product
org.eclipse.epp.package.cpp.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
I have tried a lot of methods online but none matches my case perfectly and none seems to be working.
My Eclipse was downloaded from the official site (the C/C++ package) and placed under /opt. Everything is 64-bit. I also tried deleting the eclipse package file and reinstall but failed many times with the same problem. (Not sure whether deleting the file means "uninstalling" it)
Hope someone could help! Much appreciated!

Why after reboot IDE Eclipse print error?

After installing IDE Eclipse mars.2 from official site's installer for linux64 I write some "Hello worlds's!" and all working. But later, after I reboot machine something happening with IDE and any projects not compiling, Eclipse closing with error:
JVM terminated. Exit code=127
/usr/lib/jvm/java-8-oracle/jre/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-jar /home/user/eclipse/java-latest-released/eclipse//../../../.p2/pool/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/user/eclipse/java-latest-released/eclipse/eclipse
-name Eclipse
--launcher.library /home/user/eclipse/java-latest-released/eclipse//../../../.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so
-startup /home/user/eclipse/java-latest-released/eclipse//../../../.p2/pool/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.appendVmargs
-exitdata 15800d
-product org.eclipse.epp.package.java.product
-install /home/user/eclipse/java-latest-released/eclipse
-vm /usr/lib/jvm/java-8-oracle/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-jar /home/user/eclipse/java-latest-released/eclipse//../../../.p2/pool/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
Strating from console sent this error:
/usr/lib/jvm/java-8-oracle/jre/bin/java: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined symbol: pango_renderer_set_alpha
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
I tried to reinstall from installer and tried starting from extracted archive from official site, but every time until machine not rebooted, all Ok. Also I tried remove oracle-java8 and installing openjdk-8, but I got the same result. I tried this topic Ubuntu 12.10 libgtk-3-0 Missing Symbols, but it not helped.
My "uname -a":
Linux WORKSTATION 4.3.0-1-amd64 #1 SMP Debian 4.3.5-1 (2016-02-06) x86_64 GNU/Linux
My "java -version":
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
Anyone have the same problem earlier?

JVM terminated. Exit code=8.. How can i resolve it in Ubuntu?

I get this error from eclipse(installed on Ubuntu 13.04):
JVM terminated. Exit code=8
/usr/bin/java
-Xms40m
-Xmx512m
-jar /home/davide/Scaricati/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/davide/Scaricati/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
-launcher /home/davide/Scaricati/eclipse/eclipse
-name Eclipse
--launcher.library /home/davide/Scaricati/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807/eclipse_1502.so
-startup /home/davide/Scaricati/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 730004
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx512m
-jar /home/davide/Scaricati/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
How can i resolve it? .
It is probably because you are using incompatible JVMs. You probably
ran an update the settings were changed in the background. This is
what worked for me:
1) Run: sudo update-alternatives --config java
2) Choose a different JVM
www.anintegratedworld.com/ubuntu-eclipse-jvm-terminated-exit-code8/
It should need java files/resources to install
Type
1)java -version
if it shows not found...
then type
2)export PATH=/home/Desktop/jdk1.8.0_111/bin:$PATH
3)java -version
then it displays (java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) Server VM (build 25.111-b14, mixed mode))
4)now try installing by typing ./eclipse after going to the path

VM terminated. Exit code=13

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
I had the same problem, turns out the shortcut made by the installer was set to
/eclipse/ instead of /eclipse64/.
Open eclipse.ini and type the following at the beginning of the file.
-vm
/path/to/java/bin/javaw
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

Problem running eclipse under fedora core 13 x86_64 - runs and exits without even a splash screen

When I try to run eclipse under Fedora core 13 x86_64, eclipse seems to run and then exit without an error.
My install consisted of downloading this file from the Eclipse Amazon mirror:
eclipse-jee-helios-linux-gtk.tar.gz
untarring it in my home dir, cd'ing into the reulsting eclipse dir and running the eclipse executable.
The executable seems to run and then exit without displaying so much as a splash screen.
Can anyone suggest what I am doing wrong?
See below for version details and a run of eclipse with the -debug flag.
Thanks for any suggestions.
[a1155344#minimi eclipse]$ cat //etc/issue
Fedora release 13 (Goddard)
Kernel \r on an \m (\l)
[a1155344#minimi eclipse]$ uname -a
Linux minimi 2.6.33.5-124.fc13.x86_64 #1 SMP Fri Jun 11 09:38:12 UTC 2010 x86_64
x86_64 x86_64 GNU/Linux
[a1155344#minimi eclipse]$ cat eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
[a1155344#minimi eclipse]$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
[a1155344#minimi eclipse]$ ./eclipse -debug
Start VM: /usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/a1155344/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/a1155344/eclipse/eclipse
-name Eclipse
--launcher.library /home/a1155344/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20100503/eclipse_1307.so
-startup /home/a1155344/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata c08023
-product org.eclipse.epp.package.jee.product
-debug
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/a1155344/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
Install location:
file:/home/a1155344/eclipse/
Configuration file:
file:/home/a1155344/eclipse/configuration/config.ini loaded
Configuration location:
file:/home/a1155344/eclipse/configuration/
Framework located:
file:/home/a1155344/eclipse/plugins/org.eclipse.osgi_3.6.0.v20100517.jar
Framework classpath:
file:/home/a1155344/eclipse/plugins/org.eclipse.osgi_3.6.0.v20100517.jar
Splash location:
/home/a1155344/eclipse/plugins/org.eclipse.platform_3.6.0.v201006080911/splash.bmp
Debug options:
file:/home/a1155344/eclipse/.options not found
Time to load bundles: 29
Starting application: 2773
[a1155344#minimi eclips
e]$
Make sure you are running the correct architecture with the correct JVM.
64bit Eclipse needs a 64bit JVM to run a 32bit Eclipse needs a 32bit JVM to run.
Also be certain to use the Sun JVM. Subtle errors occasionally occur with other JVM's.

Categories