PDA

View Full Version : I just installed eclipse in a new installed ubuntu system.JVM terminated.Exit Code=1.



the_analyzer
March 17th, 2009, 09:57 PM
While opens, I got the message error containing:

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.2/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 1e8012
-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.2/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=nev er
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar


After getting this I installed Java Runtime Environment, cause I thought it would be the problem (its a fresh system, just formated, running ubuntu)
help me please..

jespdj
March 17th, 2009, 10:00 PM
Ok... You are using GNU Java. That is not going to work - GNU Java is old, slow, incomplete and incompatible, and Eclipse does not work properly with it. Install Sun Java 6:

sudo apt-get install sun-java6-jdk
Then use the following command to make sure (or set) Sun Java 6 as the default Java used on your system:

sudo update-alternatives --config java

the_analyzer
March 17th, 2009, 10:06 PM
thnx man, Ill give a try.
But Should I uninstall this java (eclipse) that I have?

bapoumba
March 17th, 2009, 10:43 PM
Moved to Installation & Upgrades.

the_analyzer
March 17th, 2009, 11:33 PM
Ok... You are using GNU Java. That is not going to work - GNU Java is old, slow, incomplete and incompatible, and Eclipse does not work properly with it. Install Sun Java 6:

sudo apt-get install sun-java6-jdk
Then use the following command to make sure (or set) Sun Java 6 as the default Java used on your system:

sudo update-alternatives --config java

man I installed that, what should I do now, it is installed sth called Jconsole. What can I do with that?
I want eclipse, some kind of IDE that I can write JAVA programs,
help me guys please. :)
Im a beginner regarding development in linux.

best

lvleph
March 17th, 2009, 11:50 PM
That was to configure Java. Eclipse is the IDE. Use Eclipse after properly configuring the JDK.

jespdj
March 18th, 2009, 11:44 AM
man I installed that, what should I do now, it is installed sth called Jconsole. What can I do with that?
I want eclipse, some kind of IDE that I can write JAVA programs,
help me guys please. :)
Eclipse is itself a program written in Java. To be able to run Eclipse, you need a good version of Java (and not GNU Java, which you were using). Those instructions were to install the right version of Java.

After doing this, you should be able to start Eclipse without problems. There is no need to re-install Eclipse if you already had it installed.

the_analyzer
March 18th, 2009, 04:19 PM
nope, stil it isnt working, the result is the same window.

what about this.

sudo update-alternatives --config java
when I run this, it shows me enter input or sth, I dont know what to write, maybe it isnt the default yet. I dont know.

help me please, I really need this, I mean, its very strange,
I install ubuntu, and then from add/new I add Eclipse, why that shouldnt work, or they should write a tutorial for this. god damn. :)

jespdj
March 18th, 2009, 04:23 PM
The update-alternatives command shows you a menu in which you can select the default Java. Select Sun Java. Look closely at what is on the screen and try to understand it - don't just blindly copy and paste commands without thinking.

*edit*: If you don't want to deal with the menu, do this to directly select Sun Java as the default Java:

sudo update-java-alternatives -s java-6-sun
See https://help.ubuntu.com/community/Java

the_analyzer
March 18th, 2009, 06:18 PM
again, the same.
Here is a screenshot?

Ill start reading your link anyway.

thnx

the_analyzer
March 18th, 2009, 06:47 PM
anyway, guys thnx for helping, I found the solution,

https://help.ubuntu.com/community/EclipseIDE

I had to install OpenJDK Java Runtime.

:)

Im happy

NilsThorell
November 19th, 2009, 12:57 PM
How do I uninstall Eclipse completely from Ubuntu?
I had Eclipse Ganymede 3.4.2 working but I tried to install Galileo 3.5 but now nothing works.
I want to remove all Eclipse versions and restart from scratch.

(I have the impression that Ganymede is safer and easier to get working, so I'll stick to that)