LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-11-2007, 12:56 AM   #1
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Rep: Reputation: 30
Angry Eclipse crashes on Ubuntu?


I'm trying to setup the "Servers" view in Eclipse so I can easily deploy a webapp to JBoss 4. However, once I enter some of the info, select JBoss and hit next, the license agreement box pops up momentarily... and then Eclipse crashes and I get a little summary with the command that Eclipse was run with. The same thing happens when I select Tomcat or the generic profile. I looked around a little online and found someone who had the same problem but the solution was to upgrade the JVM or rebuild the Java libraries or something like that. I installed everything from Synaptics so I can't really do that. Has anyone else had a similar problem or at least know how to fix it? Any help would be appreciated.

-Brandon
 
Old 04-11-2007, 02:00 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,352

Rep: Reputation: 129Reputation: 129
Which version of Java are you using?
Some Java apps won't run with the GNU Java compiler, this might be the issue... Sorry I can't be any more specific.

Do you get a backtrace, if so that might help isolate the problem. If not you could try running eclipse from a terminal you should then get the backtrace in the terminal.
 
Old 04-11-2007, 08:12 AM   #3
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 39
I've had trouble running Eclipse from the repository because it wants to use GCJ for Java, which as graemef said causes problems with some Eclipse add-ons. Try de-installing GCJ, adding the Sun JDK (this you can get from the repository), and then downloading Eclipse from its project website at http://www.eclipse.org/
 
Old 04-11-2007, 11:00 AM   #4
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by graemef
Which version of Java are you using?
Some Java apps won't run with the GNU Java compiler, this might be the issue... Sorry I can't be any more specific.

Do you get a backtrace, if so that might help isolate the problem. If not you could try running eclipse from a terminal you should then get the backtrace in the terminal.
Yeah, I had some trouble getting things up and running with GNU at first. After enabling the "multiverse" repository, I am using the Sun 1.5 version of everything.

Unfortunately, I don't get a stack trace, just a list of parameters passed to the JVM when Eclipse was launched.
 
Old 04-12-2007, 12:34 AM   #5
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
If it helps, here is what I get when Eclipse crashes at the license agreement screen. Still no luck getting it to work.

Code:
JVM terminated. Exit code=1
/usr/lib/jvm/java-1.5.0-sun/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=never
-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 118010
-install /usr/lib/eclipse
-vm /usr/lib/jvm/java-1.5.0-sun/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=never
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar
 
Old 05-02-2007, 12:30 PM   #6
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
To anyone who might have a similar problem, I figured it out. The problem is that even after installing Sun Java 1.5, the version of Eclipse that was installed through apt-get was still configured to use GNU Java instead of "asking the system" which JRE to use. I looked through the config files a little and found a place or two where the GNU JRE was specified but still couldn't get the plug-ins working and ultimately decided I was better off with a clean install straight from eclipse.org. I then installed the plug-ins I wanted through the "Help -> Software Updates -> Find and Install" menu. Now it works great and I can use the J2EE plug-ins without crashing.

Considering that the plug-ins that caused the crashes were available directly through apt-get using the default Ubuntu repositories, I'm surprised no one caught this. Or has no one installed Eclipse through apt-get/Synaptics?

-Brandon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!: Installing Eclipse and Java on UBUNTU 6.10 h3x0r Linux - Software 1 03-15-2007 03:37 PM
Ubuntu Crashes a lot? Sir Loin Linux - General 17 01-11-2007 03:27 AM
Ubuntu crashes while using Firefox Sir Loin Ubuntu 18 12-16-2006 07:48 AM
Gnome on Ubuntu crashes cluelessnewb Linux - Software 3 08-12-2006 02:41 PM
eclipse crashes climbingmerlin Programming 3 10-25-2005 08:58 AM


All times are GMT -5. The time now is 04:47 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration