java.lang.NoClassDefFoundError: Could not initialize class
com.ibm.icu.impl.JavaTimeZone
at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:804)
at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java: 1630)
at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1594)
at
com.ibm.icu.text.SimpleDateFormat.initialize(SimpleDateForma t.java:465)
at
com.ibm.icu.text.SimpleDateFormat.<init>(SimpleDateFormat.java:435)
at
com.ibm.icu.text.SimpleDateFormat.<init>(SimpleDateFormat.java:368)
at
org.eclipse.ui.internal.views.log.LogSession.setDate(LogSess ion.java:43)
at
org.eclipse.ui.internal.views.log.LogSession.processLogLine( LogSession.java:67)
at
org.eclipse.ui.internal.views.log.LogReader.parseLogFile(Log Reader.java:90)
at
org.eclipse.ui.internal.views.log.LogView.readLogFile(LogVie w.java:814)
at
org.eclipse.ui.internal.views.log.LogView.createPartControl( LogView.java:172)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:367)
at
org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:226)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at
org.eclipse.ui.internal.Perspective.showView(Perspective.jav a:2229)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(Workbench Page.java:1067)
at
org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.j ava:3816)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage .java:3813)
at
org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage .java:3789)
at
org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager$7 .widgetSelected(WorkbenchStatusDialogManager.java:1507)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at
org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Li nk.java:117)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4855 )
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native
Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:202)
at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:920)
at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2151)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4653 )
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native
Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:202)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1 753)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:182 5)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4713 )
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native
Method)
at
org.eclipse.swt.widgets.Display.applicationSendEvent(Display .java:4285)
at
org.eclipse.swt.widgets.Display.applicationProc(Display.java :4352)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at
org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApp lication.java:101)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3097)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
"error.txt" 67L, 4894C

I used to have the same issue in Eclipse Galileo SR2 and the latest beta, moreover when I clicked on "Project properties" it used to show "the currently displayed page contains invalid values" and a blank page. Very annoying.

To solve the issue:

Decompress the com.ibm.icu_4.0.1.v20090822.jar file in the eclipse/plugins folder to any directory you like
If you cannot find the exact version, just decompress the IBM ICU JAR that's shipped with your version of Eclipse

In that directory, open the file com/ibm/icu/ICUConfig.properties

Replace

com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK

with

com.ibm.icu.util.TimeZone.DefaultTimeZoneType = ICU

Recompress the com.ibm.icu_4.0.1.v20090822.jar file in the eclipse/plugins folder with the modified file

Make sure Eclipse is started with a clean cache, and it should work. The easiest way of cleaning the Eclipse cache is to remove the .plugins folder of your workspace.

Thanks vercount! That worked for me too. The new Juno release was broken in Ubuntu, until I put in your ini fix!

I was able to replicate the bug on the command line without using Eclipse. I do not use the Ubuntu managed Eclipse package though, so I can't comment on whether the Eclipse Juno package was also broken. The cause for me was the upgrade of openjdk-7.

Reinstalling tzdata-java was the fix for me:

sudo apt-get --reinstall install tzdata-java

See the Ubuntu Launchpad bug number 1047762 for more details (I can't link to it as I don't have enough reputation)

Peter, based on your post, I think you narrowed it down and found the *real* problem. Thanks for sharing!

Further on my scenario: It had to have been the automatic Java upgrade that Ubuntu did, that broke my Eclipse, and was *not* the Eclipse distro itself that was the problem. The reason I was upgrading to Juno, was because Indigo had stopped working. But in reality it was the Java install that was broke. I think I let Ubuntu run some upgrades while something had the java files locked (like MySql instance), and the Java upgrading didn't comlete right. Anyway, this is TMI, but may help others.

A best way is to add this line in eclipse.ini file :
-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU

Thank you so so much for posting this issue!!! The TimeZoneError was hidden in a very long and discombobulated stack trace, but on a whim I looked it up instead of the top level and found this. I can now read my C files again!!! Also running Ubuntu, 12.04 with Open JDK 6.

On 09/18/2012 08:59 PM, Peter Kennedy wrote:
> vercout wrote on Tue, 04 January 2011 11:32
>> A best way is to add this line in eclipse.ini file :
>> -Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU
>
> Thank you so so much for posting this issue!!! The TimeZoneError was
> hidden in a very long and discombobulated stack trace, but on a whim I
> looked it up instead of the top level and found this. I can now read my
> C files again!!! :d Also running Ubuntu, 12.04 with Open JDK 6.
reinstalling tzdata-java solves the problem completely so you don't have
to add the line to eclipse.ini