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

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

Related

MAC - STS 4 "Failed to create the Java Virtual Machine"

After installing STS 4 I'm getting below message:
MAC - STS 4 "Failed to create the Java Virtual Machine
...
SpringToolSuite4.ini:
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1100.v20190907-0426
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Xdock:icon=../Resources/sts4.icns
--launcher.appendVmargs
-vm
/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/bin/java
Java Version:
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
$JAVA_HOME:
/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home
I found a solution. And it has been solved on my mac
step1. rename libjli.dylib
cd /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/MacOS
sudo mv libjli.dylib libjli.dylib.bak
step2. create linked file for libjli.dylib
sudo ln -s ../Home/lib/libjli.dylib libjli.dylib
step3. restart Eclipse.
This should be a bug for Eclipse and should be fixed in the next version of Eclipse.

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?

STS(Spring Tool Suite) Not opening

I am not able to open the spring tool suite in the centos.
Following is the exception which is causing this problem.:
JVM terminated. Exit code=13
/opt/jdk1.7.0_60/bin/java
-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m //plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-jar /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE/STS
-name STS
--launcher.library /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835/eclipse_1506.so
-startup /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.overrideVmargs
-exitdata 30000d
-product org.springsource.sts.ide
-vm /opt/jdk1.7.0_60/bin/java
-vmargs
-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-jar /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE//plugins /org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
Here is the output of the java -version command :-
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Server VM (build 24.60-b09, mixed mode)
And here is the output of the which java command :-
/usr/bin/java
Make sure that the JVM version (32/64 bit) you use matches the eclipse version (32/64 bit).Add this line in your sts.ini file and test again -vm /ur_java_home/bin/javaw.exe
First location to check is whether your JDK is 32 bit or 64 bit. Next, sheck your sts.ini configuration values. Trial and error will see you through.
I finally got this to work
Note that is on my system.
-vm
C:/Program Files/Java/jre1.8.0_144/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.551.v20171108-1834
-product
com.springsource.sts.ide
–launcher.defaultAction
openFile
–launcher.XXMaxPermSize
384M
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xmn128m
-Xms256m
-Xmx768m
-Xss4m
-XX:PermSize=128m
-XX:MaxPermSize=384m
-XX:CompileThreshold=1000
-XX:+CMSIncrementalPacing
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:+UseFastAccessorMethods

eclipse java - crashing on linux

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.

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