ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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/
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.