Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been using Eclipse for quite a while. I just switched from OpenJDK to SunJDK. I went back to using Eclipse, it opened just fine. I added some libraries to my build path of a project, but the error checker was still saying I didn't have it. So I decided to restart Eclipse. After than I can't start eclipse. It doesn't give any errors or anything. If I launch it from the command line, it doesn't do anything:

joel@joel-laptop:~$ eclipse
joel@joel-laptop:~$ 

It never pops up the choose workbench dialog or anything. Has anyone heard of this? I'm using the latest version from the Ubuntu repos.

I've tried restarting my machine and reinstalling Eclipse. Nothing.

share|improve this question
1  
eclipse -consoleLog might get you some information? –  richq Aug 13 '10 at 21:48
    
I ended up purging eclipse and Sun's JDK then reinstalled eclipse (which ended up reinstalling OpenJDK) And it works again. Weird. –  Joel Aug 13 '10 at 22:04
1  
Maybe you hit the "Oracle Bug"? I thought it was Windows only and had already been fixed, you never know though. FYI amusing details here zdnet.com/blog/burnette/oracle-rebrands-java-breaks-eclipse/… –  richq Aug 14 '10 at 19:55
    
@richq, hardly, unless Joel installed Java directly from Sun. The Ubuntu repository trails a bit behind. –  Thorbjørn Ravn Andersen Aug 19 '10 at 18:46
add comment

3 Answers

there is a log in workspace/.metadata/.plugins/org.eclipse.ui.workbench/log that you can check although I don't think that's going to work in your case. Also what do you mean you reinstalled eclipse? are you using synaptic or just unzipping into a directory? try which eclipse in case you have many installed to see which is being executed.

check if setting up the JRE manually using the -vm parameter in eclipse.ini changes thing.

share|improve this answer
1  
"I'm using the latest version from the Ubuntu repos." I used apt-get purge eclipse and then apt-get install eclipse and it still did the same thing. I ended up purging Sun JDK and reinstalling Eclipse and it installed OpenJDK. All works again. –  Joel Aug 13 '10 at 22:03
    
I have used Eclipse with both OpenJDK and the Sun VM. For me, the Sun VM always had the better performance (which could also be measured using profilers). Therefore you might want to give another try if you use large workspaces in Eclipse. –  Bananeweizen Sep 1 '10 at 18:23
add comment

UNless you have good reason to, I have found that the best way to run Eclipse is to download it from eclipse.org, and not install the one in the Ubuntu repositories. Uninstall the repository version, and download one manually and run it.

share|improve this answer
add comment
up vote 3 down vote accepted

I used apt-get purge eclipse and then apt-get install eclipse and it still did the same thing. I ended up purging Sun JDK and reinstalling Eclipse and it installed OpenJDK. All works again.

However, I'm a little disappointed that it wasn't working with Sun JDK. Oh well. Whatever.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.