In short, I have 8G of memory and eclipse/java is dying after the splash screen when I try to set the vmargs to something reasonable, like -Xms512m -Xmx2048m.
In long:
I'm running XP Pro x64, v. 2003, SP2. I'm attempting to use scala with eclipse, and in the interest of being up-to-date, I downloaded a recent Galileo for RCP/Plug-in devs:
Eclipse Platform
Version:
3.5.2.R35x_v20100210-0800-9hEiFzmFst-TiEn9hNYgDWg1XN8ulH_JvCNGB Build id: M20100211-1343
It takes quite a long time even to get past the splash screen to the workspace selection dialog. This is even before I tried to install scala.
Somewhere over at Scala, I ran across a recommendation to increase the vm memory settings, but using any -Xms setting over 64M causes the splash-and-crash (never mind any -Xmx setting). My eclipse.ini looks like:
> -startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
> --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
> -product org.eclipse.epp.package.rcp.product
> -showsplash org.eclipse.platform
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -XX:MaxPermSize=256m
> -Xms64M
> -Xss1M
> -server
> -XX:+DoEscapeAnalysis
> -XX:+UseConcMarkSweepGC
And I have java 6.0.200.2 installed, with my PATH set to point to it. I've browsed for hours trying to find a solution...any ideas what is going on?
You need the 64-bit version of Eclipse and Java. The 64-bit version of Eclipse will be mainstream with the upcoming release in June, but the current version is rather difficult to find.
You can find it here: http://download.eclipse.org/eclipse/downloads/drops/R-3.5.2-201002111343/index.php
Related
I will do my best to make my situation as clear as possible. I tried googling the error message, but I haven't found any topic regarding exit code=2 anywhere. I only found topics regarding different exit codes, and I'm trying to fix my issue following the advice given there - no luck so far. Also I'm a newbie when it comes to any form of Linux (the distribution I'm using is Ubuntu).
Problem:
My eclipse crashes on launch with following error window popping up:
JVM terminated. Exit code=2
/usr/bin/java
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library/usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist/eclipse_1503.so
-startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.overrideVmargs
-exitdata 670018
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
There is a big posibility that my problem is related to lack of proper Java version installed.
I suspect this because:
I had eclipse running on my pc two days ago. Yesterday I had to use a web-application which required a specific version of JRE installed. Due to my lack of linux knowledge, I spent a few hours removing my current installations of java JREs and JDKs (so I could install the required version) using multiple guides that I found on the internet (some included commands like sudo apt-get purge java* and other commands including removing, java and *). Today my Eclipse wont launch.
When I run
java -version
it says no such file or directory, but the webpages like
http://www.java.com/en/download/testjava.jsp
http://javatester.org/version.html
do work and say that my java version is
Vendor: Oracle Corporation
Version: Java SE 7 Update 25
Operating System: Linux 3.5.0-34-generic
Java Architecture: 64-bit
installed using this method:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Can someone please guide me how to solve this specific problem? Luckly I haven't made any important projects in my Eclipse yet so I don't mind purging the installation if necessary.
To be completely honest the main reason I need Eclipse for is the Remote Server Explorer option, so if anyone knows a good IDE other than Eclipse that can provide just as good Remote Server Explorer it would be a perfect-fast-temporary solution.
I got the same error message and solved it by starting eclipse with the -clean parameter.
To use the clean parameter:
Edit the eclipse.ini file located in your Eclipse install directory and insert -clean as the first line. Once started, remove the -clean parameter in the eclipse.ini file.
It worked for me...
Set\Change your current jdk path in eclipse.ini.
-vm
C:\Java\JDK\1.8\bin\javaw.exe
Sample Ini file contents:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Java\JDK\1.8\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
The following environment variables were removed and the Connect client was able to successfully launch:
_JAVA_OPTIONS
JAVA_TOOL_OPTIONS
IBM_JAVA_OPTIONS
The operating system environment variables can be found by:
From Desktop, right-click on My Computer icon-> Properties -> Advanced.
Click the Environment variables button to remove the before-mentioned system environment variables.
In the environment variables check the value of Path variable, it would have reference to the Oracle javapath which would be incorrect java version and may cause the issue. just remove "C:\ProgramData\Oracle\Java\javapath;" from the Path variable and try.
We need to delete all the content in the folder specified in the error msg.Please go through the link below for example JVM Terminated
I just uninstalled all of EGit plugins that I had before. The uninstall went through smoothly and asked me to restart Eclipse at the end but then Eclipse wouldn't start giving me the following error message:
I get that when I try to launch Eclipse from my shortcut on the Start Menu (using Win 7). But when I go to the Eclipse install directory itself and hit eclipse.exe there, I get the following error message:
I did go to see whether there is jvm.dll in the above directory and indeed it is there.
Any idea how to fix it?
UPDATE 1: I reinstalled both Eclipse AND JRE but the problem remains.
UPDATE 2: Here are the contents of my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
JRE & Eclipse should both be the same bit version (32 or 64). Your screenshot suggests you're running the 32-bit version of JRE, but I don't know if that was before or after you re-installed. java -version should help with JRE. Your eclipse.ini file will tell you the Eclipse bit version you're running. For example:
plugins/org.eclipse.enter code hereequinox.launcher.win32.win32.x86_1.0.
You should confirm this and try manually pointing Eclipse to your JRE binary. Here's a Windows example
-vm c:\java\jdk\1.6\bin\javaw.exe
If that works, you just need to update your eclipse.ini with the correct path.
Good luck.
Turned out the Java I had (and the only version I had access to due to the corporate network restrictions) was 1.6 32-bit even though my laptop is 64-bit (why does this work?). When I tried to reinstall Eclipse, I was using the 64-bit version. It worked when I installed the 32-bit version. BTW, the Eclipse version is
Eclipse IDE for Java EE Developers 1.4.1.20110909-1818 epp.package.jee null
I've got Eclipse 3.6.1 on my MacBook Air (2010), and I'm getting slowish startup times. Well, slow, compared to my Desktop, which is somewhat less powerful and a few years old).
The startup generally takes 15 seconds, and of this, 4 is spent just on the Eclipse splash screen, before Eclipse loads anything. No projects are open at startup.
Here's a copy of my eclipse.ini.
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Xms256m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=1.6
-Xverify:none
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:+UnlockExperimentalVMOptions
-XX:+AggressiveOpts
-XX:+StringCache
-XX:+UseFastAccessorMethods
-XX:+UseLargePages
-XX:LargePageSizeInBytes=4m
-XX:AllocatePrefetchLines=1
-XX:AllocatePrefetchStyle=1
-Dide.gc=true
The problem doesn't seem to be related to plugins - I've disabled the ones which I don't need, and regardless of this configuration or whether all of them are selected on startup, it only takes 1second to load the plugins.
I'm running Eclipse 3.6.1 Cocoa x64 build (vanilla) with the Zend Studio plugin. The machine has 4GB RAM, an SSD with over 64% free space, 1.6GHz (4MB L2 Cache). OS is Mac OS X 10.6.6, latest Java available, 1.6.
For comparison, my Desktop, an old P4 3GHZ (512K L2 Cache) with a 7200RPM drive, under 40% free space, Eclipse (same config) loads in under 7 seconds, consistently. Note, this one is a Windows machine, with latest Java installed.
You use the 64-bit version. Try with the 32-bit version.
I have Eclipse Helios SR1 installed on my Ubuntu 10.04 desktop and I'm having to work with a huge set of web projects in it.
When I import the projects eclipse builds the workspace successfully but it keeps consuming 100% of the CPU invariably.
After checking what could be happening I found that in Eclipse's progress tab there is a couple of endless tasks:
System: Java indexing... n files to index
System: Updating JSP index
System: Persisting JSP translations
These tasks seem to never end and makes my Eclipse unusable.
I doubt it is a memory issue, I have 2GB in this machine and Eclipse's heap size does not get greater than 350MB and Xmx is set currently to 1024MB.
Also tried running Eclipse with different VM versions: Sun's 1.6, Sun's 1.5, and Open JDK 1.6. No changes.
I have an Athlon X2 2.2GHz processor and a 7200 rpm Samsung hard drive.
The source code is shared via SVN.
Does anyone have any idea of what could be going on?
This is my eclipse.ini just in case:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36x_v20100810
-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
-Xmx1024m
-Djava.library.path=/usr/lib/jni
Thanks a lot.
To fix this problem, you have to close Eclipse, delete everything in the folder:
<workspace>.metadata\.plugins\org.eclipse.dltk.core.index.sql.h2
and restart again.
And then wait a couple of mitutes for the reindexing.
I had the same issue on Ubuntu 10.10 with the SpringSource Tool Suite 2.5.2. This has been reported as Bug 321602.
Just download attachment 180339 and patch your Eclipse.
The official patch will be released in SR2 around end February 2011.
in workspace .metadata - > .plugins -> org.eclipse.jst.jsp
just remove above folder in .plugins
no matter eclipse is open or not
gives instant results
I downloaded the Eclipse IDE for Java Developers Linux 32 Bit file from here.
I extracted the file and launched eclipse from the command line.
Instead of Eclipse starting I get this message in a dialog box:
VM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/eclipse
-name Eclipse
--launcher.library /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36x_v20100810/eclipse_1309.so
-startup /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 420021
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
Any ideas how to fix this? I'm on Ubuntu 8.10 64bit and here's my Java info:
$ java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6.7) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
First thing is to ensure you're running the java you think you're running. You can tell from your error output that it's using /usr/bin/java so run
/usr/bin/java -version
to check the version. That java is not necessarily the one on your path - you can find out which one that is with:
which java
Second thing you should probably try is the 64bit version of Eclipse. Everything else you have is 64bit.
Beyond that, I had all sorts of trouble early on with non-Sun JREs. That may not be the case now (or it may have been only specific to me) but it's something else you may want to look at.
On top of that (and probably unrelated to the problem at hand), do you really want to be running Eclipse from within your Firefox download directory. I would move it somewhere else personally.