Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError
osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #488277] Sun, 27 September 2009 10:41 Go to next message
Ralf Buschermoehle is currently offline Ralf BuschermoehleFriend
Messages: 27
Registered: July 2009
Junior Member
Hello,

I keep getting this error under (Topic).

Any Hints? (If this is the right place to ask?)

Greetings,

Ralf

P.S. Java 6 under Snow Leopard runs fine (in contrast).

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)


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
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #488654 is a reply to message #488277] Tue, 29 September 2009 15:31 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

I'd suggest asking this on the eclipse.platform newsgroup. I've never heard
of this problem before, and don't know what could cause JavaTimeZone to not
initialize.

Grant


"Ralf Buschermoehle" <ralf.buschermoehle@uni-oldenburg.de> wrote in message
news:h9nfhp$g7u$1@build.eclipse.org...
> Hello,
>
> I keep getting this error under (Topic).
>
> Any Hints? (If this is the right place to ask?)
>
> Greetings,
>
> Ralf
>
> P.S. Java 6 under Snow Leopard runs fine (in contrast).
>
> java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)
>
>
> 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:36
7)
> at
> org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:226)
> at
>
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReferenc
e.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:10
1)
> 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(EclipseAp
pLauncher.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
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #529393 is a reply to message #488277] Sat, 24 April 2010 14:38 Go to previous messageGo to next message
S. Ali Tokmen is currently offline S. Ali TokmenFriend
Messages: 1
Registered: July 2009
Junior Member
Hello

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:



  1. 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
  2. In that directory, open the file com/ibm/icu/ICUConfig.properties
  3. Replace
    com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK

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

  4. 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.

Cheers


Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #635385 is a reply to message #529393] Tue, 26 October 2010 15:47 Go to previous messageGo to next message
Srini Kandula is currently offline Srini KandulaFriend
Messages: 1
Registered: October 2010
Junior Member
Thanks S. Ali Tokmen. You instructions did help.
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #647118 is a reply to message #529393] Tue, 04 January 2011 16:32 Go to previous messageGo to next message
vercout is currently offline vercoutFriend
Messages: 1
Registered: January 2011
Junior Member
A best way is to add this line in eclipse.ini file :
-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #912086 is a reply to message #647118] Wed, 12 September 2012 23:04 Go to previous messageGo to next message
Clay Ferguson is currently offline Clay FergusonFriend
Messages: 2
Registered: September 2012
Junior Member
Thanks vercount! That worked for me too. The new Juno release was broken in Ubuntu, until I put in your ini fix!
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #912113 is a reply to message #912086] Thu, 13 September 2012 00:35 Go to previous messageGo to next message
Peter Ansell is currently offline Peter AnsellFriend
Messages: 1
Registered: September 2012
Junior Member
Clay Ferguson wrote on Wed, 12 September 2012 19:04
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)
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #912151 is a reply to message #912113] Thu, 13 September 2012 03:13 Go to previous messageGo to next message
Clay Ferguson is currently offline Clay FergusonFriend
Messages: 2
Registered: September 2012
Junior Member
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.
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #915602 is a reply to message #912151] Mon, 17 September 2012 16:08 Go to previous messageGo to next message
Tamal Nath is currently offline Tamal NathFriend
Messages: 2
Registered: September 2012
Junior Member
I had the same problem. I am using Ubuntu Linux. For me, the solution is simple. Install tzdata-java and restart eclipse.

sudo apt-get install tzdata-java

The problem is not in eclipse. The problem is in java configuration.
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #916420 is a reply to message #647118] Wed, 19 September 2012 01:59 Go to previous messageGo to next message
Peter Kennedy is currently offline Peter KennedyFriend
Messages: 1
Registered: September 2012
Junior Member
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!!! Very Happy Also running Ubuntu, 12.04 with Open JDK 6.
Re: osx - leopard (no(t) snow) - eclipse 3.5.1 JavaTimeZoneError [message #916463 is a reply to message #916420] Wed, 19 September 2012 03:23 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
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
Previous Topic:HTML5 support for SWTBrowser
Next Topic:Which is the latest Xulrunner version supported in SWT version X ?
Goto Forum:
  


Current Time: Thu Apr 18 14:25:54 GMT 2024

Powered by FUDForum. Page generated in 0.03246 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top