PDA

View Full Version : Eclipse Crashing with Error


sreeraj
December 27th, 2006, 07:05 AM
Eclipse get closed and the following error is displayed. I am using Ubuntu 6.06 LTS with eclipse3.2.1 and java 1.5.0.09. Exadel 4.0.0 is used in eclipse

VM terminated. Exit code=1
/usr/bin/java
-Xms40m
-Xmx256m
-jar /home/jobu/programs/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /home/jobu/programs/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 228011
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /home/jobu/programs/eclipse/startup.jar

Please Please Please any one help me very urgent

phossal
December 28th, 2006, 05:11 AM
Is this happening when you first start eclipse? If not, at what point?

rgeddes
January 5th, 2007, 01:45 AM
The same thing is happening to me... I execute /usr/bin/eclipse. The opening takes a while and eventually displays the 'Overview' screen. If I select a link on that screen, eg 'Workbench Basics', it crashes followed by a message window:

JVM terminated. Exit code=1
/usr/lib/jvm/java-gcj/bin/java
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=nev er
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 8c8015
-install /usr/lib/eclipse
-vm /usr/lib/jvm/java-gcj/bin/java
-vmargs
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=nev er
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar

The message says the JVM terminated, but gives no hint as to whether the JVM termination was the cause or the result. Also, the JVM that is used is java-gcj, I think it's the GNU JVM... can anyone tell me if the Sun JVM is better, and if so, how can I get the Sun JVM to play with Eclipse.

Thnx
Richard

sreeraj
January 5th, 2007, 04:33 AM
It is happening when we are working in eclipse. At start time no problem. Also it is not occuring regularly.

hod139
January 5th, 2007, 09:47 AM
Have you done all the steps in the howto (http://ubuntuforums.org/showthread.php?t=201378) for installing the repository version of eclipse? My guess is maybe you need to do

sudo update-java-alternatives -s java-1.5.0-sun

rgeddes
January 5th, 2007, 08:53 PM
hod139,

That HowTo got me past the 'Welcome' tab. I can now get Eclipse 'Help' without crashes. GNU Java seems to be the default JVM, yet I've read quite a few complaints about it. In many cases, it's too slow, and in my case, it crashed Eclipse (assuming an indirect cause and effect).

Thanx
Rich

phossal
January 6th, 2007, 12:36 PM
Here is my suggestion...

1. Download Java
Download the 32Bit JDK (http://java.sun.com/javase/downloads/index.jsp) right from SUN.
You want this: jdk-6-linux-i586.bin

2. Download Eclipse
Download the 32bit Eclipse right from eclipse.org (http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/)
You want this: eclipse-SDK-3.2.1-linux-gtk.tar.gz


Installation
A. Eclipse simply needs to be extracted.
B. The JDK requires that you run the install script.
Rename the folder it produces to something simple: JDK6.32
C. Configure BASH to export the JAVA_HOME env variable like so:



#BEG Copy and Paste
#Copy and Paste at the bottom of your /home/<user>/.bashrc file
#Then close all of your terminal windows. Reopen one, and type "eclipse"
# ~~~~~~~~~~~~~~~~~ JAVA (JDK,JRE) ~~~~~~~~~~~~~~~~~~~~~
export JAVA_HOME='/home/<user>/Desktop/JDK6.32'
PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
#
# The eclipse alias below assumes that you have extracted the eclipse folder
# to your desktop. It can be anywhere. Edit path as necessary
#
alias eclipse='java -jar /home/<user>/Desktop/eclipse/startup.jar'
#END Copy and Paste



Additional Info
This is a very simple way to install the latest JDK. Obviously this method isn't supported by the package managers. You'll have to update on your own. The advantage is that the cooperation and performance of the two 32bit packages rivals the same on Windows. Also, this way, you can actually have multiple eclipses, JDK's, and, when you decide to, multiple Tomcat instances. They all can be installed in nearly the same way.


Notes
A few times I've downloaded the JDK, only to be presented with an error that a file could not be found, and that installation could not continue. It seems that, occasionally, the file available for download has been prepared incorrectly. Once the problem is reported, and a few hours go by, I try again with success. It doesn't happen often, but it's happened more than once.

lemone
February 27th, 2007, 12:02 AM
I read that one easy way to "fix" this problem is to delete the .metadata directory under your workspace directory. ~/.workspace/.metadata is the default.

Of course, this will destroy all of your workspace settings, but it should be "fixed." I never bothered figuring out what the exact cause of the error was, but after removing that .metadata directory everything seemed to be working fine. Eclipse started properly and I could mess around with the workspace. Then I tried to recreate a rails project and got similar errors and the crash. This all started after installing libsvn-javahl, so I simply used synaptic to remove that package. All is well, except now I can't use subclipse.

Somebody more ambitious and/or with more experience might be able to shed some light.

Shadowed
March 22nd, 2008, 07:37 AM
I read that one easy way to "fix" this problem is to delete the .metadata directory under your workspace directory. ~/.workspace/.metadata is the default.

Of course, this will destroy all of your workspace settings, but it should be "fixed." I never bothered figuring out what the exact cause of the error was, but after removing that .metadata directory everything seemed to be working fine. Eclipse started properly and I could mess around with the workspace. Then I tried to recreate a rails project and got similar errors and the crash. This all started after installing libsvn-javahl, so I simply used synaptic to remove that package. All is well, except now I can't use subclipse.

Somebody more ambitious and/or with more experience might be able to shed some light.

Just waned to note that this solution worked for me as well.

My Eclipse with PHP crashed with the error message every time I tried to open most of the PHP files in my project. After deleting the .metadata directory under my workspace folder, I was able to open any of the files.

I also hope that someone more experienced can give a more 'adacemical' solution to this problem.