Eclipse seems to break more often than ‘Mr glass’ in Unbreakable. But simply reinstalling isn’t a strait forward task either. When uninstalling, the tool bar breaks (k, thats fixed with a restart), but more importantly eclipse won’t start again. You get a message stating that an error is logged in ~/.eclipse/configuration/1177584905255.log (filename changes).

!SESSION 2007-04-26 12:55:05.114 ———————————————–
eclipse.buildId=M20070212-1330
java.fullversion=GNU libgcj 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.update.configurator 2007-04-26 12:55:05.682
!MESSAGE /home/arnold/.eclipse/org.eclipse.sdk.ide/updates/eclipse/plugins is not a valid plugins directory.

!ENTRY org.eclipse.osgi 2 1 2007-04-26 12:55:08.090
!MESSAGE NLS missing message: initializer_error in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 2 1 2007-04-26 12:55:08.091
!MESSAGE NLS missing message: fileInitializer_fileNotFound in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 2 1 2007-04-26 12:55:08.091
!MESSAGE NLS missing message: fileInitializer_IOError in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 2 1 2007-04-26 12:55:08.091
!MESSAGE NLS missing message: fileInitializer_missingFileName in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 4 0 2007-04-26 12:55:08.173
!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (42).
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid

To solve this, do a complete remove (aka remove –purge) of all eclipse debian packages as well as the libswt3.2-gtk-java and libswt3.2-gtk-jni package and than install eclipse again.

If you still get errors, do a complete remove again, delete /usr/lib/eclipse, /usr/local/lib/eclipse and ~/.eclipse and install eclipse again. After that you can continue with your favorite hobby of re-installing all of the eclipse plugins.

The moral of the story: when you’ve got eclipse working DO NOT TOUCH.

Yes and another tip. To install eclipse packages for all users instead of only you, do the following:

chgrp adm /usr/lib/eclipse
chmod g+rwx /usr/lib/eclipse

Have a look at the follow up article ‘Eclipse problems solved (finally)’. Eclipse has been running almost smooth ever after.