Start up error while opening eclipse - java

I have Eclipse in my computer and is running perfectly, after I install maven plugin and my java update itself, when I open eclipse, it show this message: "java was started but returned exit code=13", someone can help me?
Here is my java version:
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode, sharing)
Here is my eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Xmx512m
and I also find that javaw.exe , java.exe and javaws.exe are 0 Kb in
C:\ProgramData\Oracle\Java\javapath, I think it cause the problem, how can i fix it?
Here is the link to my start up error

Add vm argument to eclipse.ini file which points to your jdk installation directory. For example like this:
-vm
/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java
The argument needs to be just before the -vmargs argument and needs to have a new line as in the example above
Java 8 support in eclipse is available since Eclipse Luna (4.4) or with a patched Eclipse Kepler (4.3.2) as described here

Related

Eclipse_Photon: "Error: Could not create the Java Virtual Machine" while executing java main method

Please, can someone help me resolve this issue? I've tried solution mentioned at https://stackoverflow.com/a/12333879/7415499, however, this also didn't work out for me.
Eclipse Version:
Version: Photon Milestone 3 (4.8.0M3)
Build id: 20171102-1036
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Note: The error is not coming while launching the eclipse.exe, but rather when I am executing a main() method
Eclipse_Error_Screenshoot
eclipse.ini file is modified as below:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
C:\Users\DELL\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.600.v20170921-0935
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs C:\Program Files\Java\jdk1.8.0_144\bin\javaw.exe
-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/
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx512m
--add-modules=ALL-SYSTEM
The line -vmargs C:\Program Files\Java\jdk1.8.0_144\bin\javaw.exe is completely wrong.
-vmargs must be on a line on its own, If you want to specify a JRE/JDK location you use -vm followed by a separate line containing the JRE/JDK path - this must be above any -vmargs line.
So:
-vm
C:\Program Files\Java\jdk1.8.0_144\bin\javaw.exe
-vmargs
Note that this only sets the JRE/JDK that Eclipse uses to run. You should also set the JRE/JDK used to run programs from with Eclipse - this is in the Preferences in 'Java > Installed JREs'.
There seemed to be an issue while tweaking with the eclipse.ini file and my Java installation. After performing java installation and downloading new eclipse ver, all worked well

eclipse.ini -vm has conflict with environment variables

I have eclipse can't start correctly, i have tried two ways:
set environment variables about java, and running and compiling in windows cmd is fine. i have no admin rights and system path have wrong java path but i can't change it. so the eclipse will crash.
use -vm option in eclipse.ini without java_home setting, have following error:
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry.
my eclipse.ini:
`-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-vm
C:\software\java\jdk_1.7.0_89\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
`
Thanks everyone!
Eclipse Neon (and Eclipse Oxygen) both require Java 8 to run, you appear to be running Java 7. You will have to install Java 8 and specify its location in the eclipse.ini.

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!

Eclipse JVM Exit Code 127 when RTC 'Jazz Administration' perspective was opened

I've setup a new RHEL6.5 OS and installed Java 64bit with this tutorial. The version check shows:
[user#localhost bin]$ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
And JAVA_HOME and JAVA_JRE are set correctly:
[user#localhost bin]$ echo $JAVA_HOME && echo $JRE_HOME
/opt/jdk1.7.0_75
/opt/jdk1.7.0_75/jre
I installed the latest version (4.4.2) of eclipse and was able to execute it. Because of my project setup I've installed the RTC-Plugin with the p2 archive: RTC-Client-p2Repo-5.0.2.zip
After the successful start I want to change into the Jazz Administration perspective Java crashes every time with this JVM error.
JVM terminated. Exit code=127 /opt/jdk1.7.0_75/jre/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=2048m
-Xms40m
-Xmx2048m
-jar /home/user/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/user/eclipse//plugins/org.eclipse.platform_4.4.2.v20150204-1700/splash.bmp
-launcher /home/user/eclipse/eclipse
-name Eclipse
--launcher.library /home/user/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316/eclipse_1607.so
-startup /home/user/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 148010
-product org.eclipse.epp.package.jee.product
-vm /opt/jdk1.7.0_75/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=2048m
-Xms40m
-Xmx2048m
-jar /home/user/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
Can someone help me with this error? I've tried different parameter in the eclipse.ini. This is my current eclipse.ini used while the errors occure.
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/opt/jdk1.7.0_75/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=1024m
-Xms40m
-Xmx1024m
Ok, I found the point of failure. It's the SWT Browser which causes the problem.
This is an eclipse problem (bug 343889).
Many of the linux distributions recently underwent an upgrade to xulrunner-2.0 which is incompatible with some versions of eclipse. (even with xmlrunner-compat packages)
I found some information about this error in these posts:
Error while delivering code in RTC (Quote Source)
SWT Browser & Eclipse
After i added these lines to my eclipse.ini I encountered another error.
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.DefaultType=mozilla
But this time it was logged in the .log within my .metadata.
!ENTRY com.ibm.team.process.ide.ui 4 0 2015-03-19 03:11:17.361
!MESSAGE Error logged from Process Client UI:
!STACK 0
org.eclipse.swt.SWTError: No more handles [Could not detect registered XULRunner to use]
at org.eclipse.swt.SWT.error(SWT.java:4467)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:681)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
...
If anyone looks for theses errors, try this posts:
How to install XULRunner for Eclipse
swt browser No more handles Error
SWT Browser not working?

Error launching Eclipse 4.4 "Version 1.6.0_65 of the JVM is not suitable for this product." [duplicate]

This question already has answers here:
Eclipse in OS X uses different version of Java than CLI
(6 answers)
Closed 8 years ago.
I have a problem launching Eclipse 4.4 on my Mac. I'm getting the following error:
"Version 1.6.0_65 of the JVM is not suitable for this product."
I have the latest version installed. When I'm running java -version I'm getting:
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
Here is my eclipse.ini file where I already tried to explicit set the -vm parameter to my jdk1.8:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java
Here's how to fix this error when launching Eclipse:
Version 1.6.0_65 of the JVM is not suitable for this product. Version: 1.7 or greater is required.
Go and install latest JDK
Make sure you have installed 64 bit Eclipse
Your -vm argument seems ok BUT it's position is wrong. According to this Eclipse Wiki entry :
The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
So your -vm argument is not taken into account and it fails over to your default java installation, which is probably 1.6.0_65.
Please check if you got the x64 edition of eclipse. Someone answered this just a few hours ago.

Categories