Eclipse is not opening in linux environment - java

Am getting below error , when trying to open eclipse oxygen , in Red Hat Linux env 64 bit. installed jdk 8 also in the linux env.
JVM terminated. Exit code=1
/usr/java/jdk1.7.0_67-cloudera/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 /home/cloudera/Downloads/eclipse//plugins
/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/cloudera/Downloads/eclipse//plugins
/org.eclipse.epp.package.common_4.7.3.20180405-1200/splash.bmp
-launcher /home/cloudera/Downloads/eclipse/eclipse
-name Eclipse
--launcher.library /home/cloudera/Downloads/eclipse//plugins
/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834
/eclipse_1630.so
-startup /home/cloudera/Downloads/eclipse//plugins
/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata 100015
-product org.eclipse.epp.package.jee.product
-vm /usr/java/jdk1.7.0_67-cloudera/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 /home/cloudera/Downloads/eclipse//plugins
/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

This looks like eclipse is configured to use the wrong java version. Required is 1.8. But uses 1.7

Related

Error: JVM terminated. Exit code=4 in Ubuntu

Below is the JAVA version installed in my Ubuntu:-
openjdk version "1.8.0_312" OpenJDK Runtime Environment (build
1.8.0_312-8u312-b07-0ubuntu1~20.04-b07) OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
Eclipse Installed version:-
Eclipse IDE for Java Developers Version: 2019-12 (4.14.0) Build id: 20191212-1212
Steps which I followed to compile my code:-
source path of SDK
Run cMake command
make generate
I am getting below error at step3:-
JVM terminated. Exit code=4 /usr/bin/java
-jar /home/xman/ELINALITE//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-launcher /home/xman/ELINALITE/elina
-name Elina
--launcher.library /home/xman/ELINALITE//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316/eclipse_1607.so
-startup /home/xman/ELINALITE//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.overrideVmargs
-exitdata 8027 ............ ............
-vm /usr/bin/java
-vmargs
-jar /home/xman/ELINALITE//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
Below is the content of my /snap/eclipse/48/eclipse.ini file?
-startup plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar
--launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426
-product org.eclipse.epp.package.java.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
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
Can somebody help me to resolve this error?

Why doesn't my Eclipse start in El Capitan?

I have been working in Eclipse for a while and recently I had to change java_home for some other application. Since then my Eclipse doesn't start. I have followed all the solutions posted to questions similar to this but no use. These are some details regarding the problem.
java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
javac -version
javac 1.8.0_92
When I try to open Eclipse through terminal via open Eclipse.app/ , I get prompt to look at the following log at /Eclipse.app/Contents/Eclipse/configuration/1465758949259.log
!SESSION 2016-06-12 12:15:49.142 -----------------------------------------------
eclipse.buildId=4.5.2.M20160212-1500
java.version=1.8.0_92
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product - keyring /Users/***/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.cpp.product -keyring /Users/***/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 4 0 2016-06-12 12:15:50.124
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.swt.widgets.Display.applicationWillFinishLaunching(Display.java:5244)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5344)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.finishLaunching(Display.java:5025)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5321)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.finishLaunching(NSApplication.java:59)
at org.eclipse.swt.widgets.Display.init(Display.java:2221)
at org.eclipse.swt.graphics.Device.<init>(Device.java:131)
at org.eclipse.swt.widgets.Display.<init>(Display.java:721)
at org.eclipse.swt.widgets.Display.<init>(Display.java:712)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:790)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:169)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:111)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
config.ini
#This configuration file was written by:
org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Thu Feb 18 03:26:43 EST 2016
org.eclipse.update.reconcile=false
eclipse.p2.profile=epp.package.cpp
osgi.instance.area.default=#user.home/Documents/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar
equinox.use.ds=true
eclipse.buildId=4.5.2.M20160212-1500
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.1.100.v20150423-1455.jar#1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.platform.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=reference\:file\:org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.p2.data.area=#config.dir/../p2
osgi.bundles.defaultStartLevel=4
eclipse.ini
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.cpp.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
-Xms256m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
In the previous questions, many have suggested to remove few files in the .metadata folder in workspace. I have tried completely removing the workspace itself but still Eclipse won't start. I have also tried ./eclipse -clean. Any guide would be really helpful.

Error starting Eclipse on Ubuntu, JVM terminated Exit code=13

I know, This question is repeated. But I couldn't find solution to my problem.
I do not have sudo permission on ubuntu 12.04.1 LTS, so downloaded eclipse-cpp-luna-SR1-linux-gtk-x86_64.tar.gz and jdk-8u25-linux-i586.tar.gz. set JAVA_HOME ->jdk, JRE_HOME->JRE and PATH variable to JAVAHOME/bin
Getting the below error
JVM terminated. Exit code=13
/vol/users/pradeep.rajan/eclipse/jdk1.8.0_25/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/work/pradeep.rajan/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/work/pradeep.rajan/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925-0400/splash.bmp
-launcher /home/work/pradeep.rajan/eclipse/eclipse
-name Eclipse
--launcher.library /home/work/pradeep.rajan/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so
-startup /home/work/pradeep.rajan/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 2f48018
-product org.eclipse.epp.package.cpp.product
-vm /vol/users/pradeep.rajan/eclipse/jdk1.8.0_25/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/work/pradeep.rajan/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
My eclipse.ini file
-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.v20140603-1326
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
Copy the JRE to eclipse/jre so eclispse can use eclipse/jre/bin/java!

JVM terminated. Exit code=13

I have downloaded eclipse 64 bit and my os is 64 bit fedora
but am getting below error when i try to open eclipse..
i dont know its a os issue or eclipse issue
when i type java - version
iam being shown with
java version "1.7.0_51"
OpenJDK Runtime Environment (fedora-2.4.5.1.fc20-x86_64 u51-b31)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/kranthikumar.sama/Downloads/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/kranthikumar.sama/Downloads/Eclipse/eclipse//plugins/org.eclipse.platform_4.2.1.v201209141800/splash.bmp
-launcher /home/kranthikumar.sama/Downloads/Eclipse/eclipse/eclipse
-name Eclipse
--launcher.library /home/kranthikumar.sama/Downloads/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
-startup /home/kranthikumar.sama/Downloads/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 260005
-product org.eclipse.epp.package.dsl.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/kranthikumar.sama/Downloads/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
here is my eclipse.ini file
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.dsl.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

64-bit JDK configuration in Eclipse JUNO

What is it missing in my eclipse.ini. I tried reference from wiki.eclipse.org
My environment is
64-bit Window 7
64-bit JDK (C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe)
eclipse version=4.2.0
Eclipse JUNO
Error
Java was started but returned exit code=13
C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms512m
-Xmx1024m
-XX:MaxPermSize=512M
-jar D:\java\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os win32
-ws win32
-arch x86
-showsplash D:\java\eclipse\\plugins\org.eclipse.platform_4.2.1.v201209141800\splash.bmp
-launcher D:\java\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\java\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813\eclipse_1503.dll
-startup D:\java\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 139c_80
-product org.eclipse.epp.package.jee.product
-vm C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms512m
-Xmx1024m
-XX:MaxPermSize=512M
-jar D:\java\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-vm
C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms512m
-Xmx1024m
You have 32 bit Juno and 64 bit jdk it is the problem
you need all the components in 64 bit version.
Eclipse
JDK
Platform

Categories

Resources