Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu crashed, Eclipse lost .metadata, Java Perspective gone, missing, lost

I am running Eclipse Galileo on Ubuntu 10.04 LTS. Ubuntu crashed on me today, and after rebooting, I found that Eclipse has completely lost the Java Perspective (it's like the perspective and all associated views never existed) and the .metadata dir in my workspace is empty except for version.ini.

What's up with that? Why did it happen? How can I prevent it? How can I recover from it?

like image 715
Stewart Avatar asked Feb 18 '26 22:02

Stewart


2 Answers

I ran into an issue - When I installed C/C++ and some collaboration projects (not sure which one), I ran into the same issue. I did the eclipse clean and even tried a new workspace. No help. Ran eclipse -debug -console, found that there were some configurations loaded from ~/.eclipse.

Just renamed that directory and restarted and got back all the perspectives!

like image 138
Venkat Avatar answered Feb 21 '26 15:02

Venkat


First I would try to create a new workspace, and see whether there are the missing elements present. If the other workspace is working correctly, then your original workspace got corrupted.

You can import all projects to the new workspace, and try to use it (although this way you may lose the global settings, that are stored in your old workspace, but at least all your projects and project-specific settings are intact).

On the other hand, if the new workspace also does not work, then you could try launching eclipse with the -clean parameter, or uninstalling and reinstalling it.

like image 29
Zoltán Ujhelyi Avatar answered Feb 21 '26 13:02

Zoltán Ujhelyi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!