How to fix Eclipse and PreferenceConverter exception

I'm running Linux Mint on my desktop and I recently updated my eclipse version to new Juno. After that the Eclipse sometimes doesn't want to start and I end up with frozen tiny dialog without any content which I'm not able to close and have to kill it. The issue lies somewhere deep in preferences of your workspace when eclipse sometimes can't load your cached data. If something like this is happening to you as well try to check the log file of your current eclipse profile which you can find in YOUR_WORKSPACE/.metadata/.log - if you see some thing like the error below at the very bottom of this file then you are experiencing the same bug.

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jface.preference.PreferenceConverter at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont( at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry( at org.eclipse.ui.internal.Workbench$27.runWithException( at org.eclipse.ui.internal.StartupThreading$ at at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages( at org.eclipse.swt.widgets.Display.runAsyncMessages( at org.eclipse.swt.widgets.Display.readAndDispatch( at org.eclipse.ui.internal.Workbench.runUI( at org.eclipse.ui.internal.Workbench.access$7( at org.eclipse.ui.internal.Workbench$ at org.eclipse.core.databinding.observable.Realm.runWithDefault( at org.eclipse.ui.internal.Workbench.createAndRunWorkbench( at org.eclipse.ui.PlatformUI.createAndRunWorkbench( at org.eclipse.ui.internal.ide.application.IDEApplication.start( at at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication( at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start( at at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.eclipse.equinox.launcher.Main.invokeFramework( at org.eclipse.equinox.launcher.Main.basicRun( at

So how to get rid of this? First of all kill the eclipse if its still running with:

ps -ax | grep eclipsekill $id

And then delete the file which is breaking Eclipse:

rm YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap

That's it - enjoy coding!


Related posts