Eclipse startup error JVC terminated exit code 2 - eclipse

I'm getting this problem when I start-up. I managed to get it working perfectly then I did a system restore (which brought me back to before I had it) and since then its not worked, though I re-installed it and did everything as I had before. According to the uninstall/change program menu I have Java 7 Update 75 (64-bit) and Java SE Development Kit 7 Update 75 (64-bit) installed.!
Thanks a lot guys!
JVM terminated. Exit code=2
C:\ProgramData\Oracle\Java\javapath\javaw.exe
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-jar
C:\Users\Tom\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os win32
-ws win32
-arch x86_64
-showsplash
C:\Users\Tom\Desktop\eclipse\\plugins/org.eclipse.platform_4.4.2.v20150204-1700\splash.bmp
-launcher C:\Users\tom\Desktop\eclipse\eclipse.exe
-name Eclipse
--launcher.library
C:\Users\Tom\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316\eclipse_1608.dll
-startup
C:\Users\Tom\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdate 1f18_68
-product org.eclipse.epp.package.java.product
-vm C:\ProgramData\Oracle\Java\javapath\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xmsm40
-Xmx512m
-jar
C:\Users\Tom\Desktop\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar

Answer can be found here - Eclipse: JVM terminated. Exit code=2
"The problem was resolved when I changed PATH variable by removing
C:\ProgramData\Oracle\Java\javapath;
In command prompt I also ran following commands:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
set PATH=C:\Program Files\Java\jdk1.8.0_25\bin;%PATH%
But I think the most important was to remove C:\ProgramData\Oracle\Java\javapath; from the PATH."

Related

Why do I got error dialog when opening Eclipse?

When opening Eclipse, a dialog opens and here is the message displayed in the dialog:
JVM terminated. Exit code=1
/usr/bin/java
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-jar /opt/marseclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os linux
-ws gtk
-arch x86_64
-launcher /opt/marseclipse/eclipse
-name Eclipse
--launcher.library /opt/marseclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so
-startup /opt/marseclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.appendVmargs
-exitdata c78010
-data /root/workspace2
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-import /root/workspace2/ut
-vm /usr/bin/java
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-jar /opt/marseclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
Please guide!
okay so there seems to be a memory problem.You can go to config file and increase the Xms256m size to 512 or 1024 which ever works for you.And heap memory ie Xms256m depends on your physical memory of OS.So change accordingly.
You can change it by going to run configuration you want to customizeand open the tab Arguments and add -Xmx or Xms in the VM arguments section
Solved by myself. I run eclipse twice (first time to import project to new workbench, second time to open the new workbench) from the first workbench by call Runtime.getRuntime.exec(). I forgot to do process1.waitFor(), so the new workbench intended to be run twice at the same time, this is the root cause.

Can not install IBM installation manager on CentOS 6.5

i have a problem when i tried to install IBM installation manager into CentOS 6.5.
i tried to install all version of IBM installation manager (both remote from window and on GUI mode), but the same error occurred.
in command line
Xlib: extension "RANDR" missing on display "localhost:11.0"
in GUI (http://imgur.com/w06gcJR)
Install:
JVM terminated. Exit code=13
/ftp/im//jre_6.0.0.sr9_20110208_03/jre/bin/java
-Xms40m
-Xmx512m
-Xquickstart
-Xgcpolicy:gencon
-jar /ftp/im/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /ftp/im/install
-name Install
--launcher.library /ftp/im/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
-startup /ftp/im/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 18000
-toolId install
-accessRights admin input #osgi.install.area/install.xml
-vm /ftp/im//jre_6.0.0.sr9_20110208_03/jre/bin/java
-vmargs
-Xms40m
-Xmx512m
-Xquickstart
-Xgcpolicy:gencon
-jar /ftp/im/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
follow google, i also tried to config X11 forwarding, GTK, change JRE path from install.ini file, use console mode, but i still received those error.
can somebody give me a solution?
thanks

Eclipse, exit code 13

I am using java 1.6. I have 64 bit W7OS. When I start Eclipse, I receive the exit code=13 error message.
I have seen some solutions for this and I went into the eclipse.ini file and added in the path to java 1.6. This is the .ini file now. I added in the '-vm' and the following line of C:...
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130521-0416
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jre6\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
I understand that the Internet thinks that this has to do with my OS being 64-bit and Eclipse trying to run 32 bit version or something, but I do not understand the solutions given for that. What should I do?
Thank you in advance.
You don't have to reinstall java.
Go to C:\Program Data\Oracle\java and check the path the shortcuts java, javaw and javaws are pointing to.
If the shortcuts are not pointing to the correct 64-bit java path, delete the shortcuts and create new ones with the same name and change the target location of the program to the 64bit java (jdk\bin{java or javaws or javaw}) location.
I had this problem and was generated by the symlinks in C:\ProgramData\Oracle\Java\javapath the javaw symlink was pointing to the 32bit version.
I removed and created a new javaw symlink whith this command on the command prompt running as admin: mklink \javaw "C:\Program Files\Java\jdk1.8.0_60\bin"
The last arg og the command is where 64bit javaw is placed.
Hope this helps!

Eclipse Pydev autocomplete not working with error: java.lang.RuntimeException: The python client still hasn't connected back to the eclipse java vm

My eclipse with pydev has been working quite well without any problems for past 1-2 years until now. I don't know what caused it, but possibly it could be due to java upgrade I did (however, this is happening first time).
Problem: My eclipse pydev autocomplete hangs and doesn't work.
Logs:
java.lang.RuntimeException: The python client still hasn't connected back to the eclipse java vm (will retry...)
at org.python.pydev.core.log.Log.log(Log.java:54)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:334)
at org.python.pydev.editor.codecompletion.shell.ShellsContainer.getServerShell(ShellsContainer.java:232)
at org.python.pydev.editor.codecompletion.shell.ShellsContainer.getServerShell(ShellsContainer.java:165)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:222)
at org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.createInnerFromServer(CompiledModule.java:330)
at org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.getGlobalTokens(CompiledModule.java:531)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.internalGenerateGetCompletionsForModule(AbstractASTManager.java:715)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:541)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:510)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:502)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:493)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.internalGenerateGetCompletionsForModule(AbstractASTManager.java:723)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:541)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:510)
at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:502)
at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findGlobalTokDef(SourceModule.java:974)
at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDefinitionsFromModAndTok(SourceModule.java:923)
at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDefinition(SourceModule.java:905)
at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDefinition(SourceModule.java:664)
at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDefinition(SourceModule.java:1)
at org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDefinition(PyRefactoringFindDefinition.java:177)
at org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDefinition(PyRefactoringFindDefinition.java:79)
at com.python.pydev.refactoring.refactorer.RefactorerFindDefinition.findDefinition(RefactorerFindDefinition.java:61)
at com.python.pydev.refactoring.refactorer.Refactorer.findDefinition(Refactorer.java:114)
at com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkInitialConditions(PyRenameEntryPoint.java:232)
at com.python.pydev.refactoring.markoccurrences.MarkOccurrencesJob.createRequest(MarkOccurrencesJob.java:102)
at org.python.pydev.shared_ui.mark_occurrences.BaseMarkOccurrencesJob.run(BaseMarkOccurrencesJob.java:168)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Setup:
eclipse.buildId=4.3.2.M20140221-1700
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.standard.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product
Eclipse Standard Kepler Service Release 2
pydev 3.5.0.201xxx
Windows 7
eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-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.6
-Xms40m
-Xmx512m
-Djava.net.preferIPv4Stack=true
My Java setup:
> java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
Java is installed at: C:\Program Files\Java (has jdk1.7.0_55 and jre7 folders)
I have tried the following things:
Reinstalled java
Removed and readded Workspace/pydev/Python Interpreter
Disabled Firewall
I believe its because, the java isn't starting (I can't find any process named java from the taskmgr)
Please help
So, after spending lot of time debugging this issue, I was able to fix my own problem.
I took the following steps to fix my problem:
Added the following line right before -vmargs in eclipse.ini (this allowed the java.exe to start all the time)
-vm
C:\Program Files\Java\jdk1.7.0_55\bin\java.exe
Added the following line at the end of the host file C:\windows\system32\drivers\etc\hosts file (this allowed \eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pycompletionserver.py to connect to the java eclipse vm. NOTE: Alternatively, you can edit \eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pydev_localhost.py file and replace 'localhost' with '127.0.0.1')
127.0.0.1 localhost
NOTE: I had my firewall disabled all throughout the session.
In my case, I had accidentally edited an error into one of the core python modules (os), which broke the import of a lot of other modules, which lead to this same problem. Simply uninstalling and re-installing python fixed the problem.

Error When I Start Eclipse in Ubuntu [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Cannot run Eclipse; JVM terminated. Exit code=13
Java was started but returned exit code=13
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms128m
-Xmx512m
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/:/usr/lib/jni
-Djava.class.path=/home/giri/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/giri/eclipse//plugins/org.eclipse.platform_4.2.1.v201209141800/splash.bmp
-launcher /home/giri/eclipse/eclipse
-name Eclipse
--launcher.library /home/giri/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
-startup /home/giri/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-product org.eclipse.epp.package.jee.product
-vm /usr/lib/jvm/java-6-openjdk/jre/bin/../lib/i386/client/libjvm.so
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms128m
-Xmx512m
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/:/usr/lib/jni
-Djava.class.path=/home/giri/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
How do I resolve this?
See here: Eclipse Helios not launching
This occurs when using an x86 Eclipse with a x64 JDK (and perhaps
vice-versa). Just point to a JDK with the same architecture as your
Eclipse in your eclipse.ini file, eg:
-vm /opt/java/jdk1.6.0_25_x86/jre/bin/javaw.exe