Results 1 to 5 of 5
- 10-12-2010, 12:08 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
java.lang.NoClassDefFoundError when i run my first project
I use MAC OS v10.5.8 2.6 Processor: Intel Core 2 Duo 2.66 GHz and a Memory 4GB 1067 Mhz DDR3.
I have the default java settings enabled:
J2SE 5.0 32-bit
Java SE 6 64-bit
J2SE 5.0 64-bit
I downloaded the default eclipse version for mac:
Eclipse IDE for Java Developers
I install and run it, then i create a sample application to test it works and it gives me this kind of error when i try to "Run" my project

This is the error log:
java.lang.NoClassDefFoundError
at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java :679)
at com.ibm.icu.util.Calendar.getInstanceInternal(Cale ndar.java: 1633)
at com.ibm.icu.util.Calendar.getInstance(Calendar.jav a:1597)
at com.ibm.icu.text.SimpleDateFormat.initialize(Simpl eDateForma t.java:508)
at com.ibm.icu.text.SimpleDateFormat.<init>(SimpleDat eFormat.java:473)
at com.ibm.icu.text.SimpleDateFormat.<init>(SimpleDat eFormat.java:390)
at org.eclipse.ui.internal.views.log.LogSession.setDa te(LogSess ion.java:43)
at org.eclipse.ui.internal.views.log.LogSession.proce ssLogLine( LogSession.java:67)
at org.eclipse.ui.internal.views.log.LogReader.parseL ogFile(Log Reader.java:91)
at org.eclipse.ui.internal.views.log.LogView.readLogF ile(LogVie w.java:821)
at org.eclipse.ui.internal.views.log.LogView.createPa rtControl( LogView.java:171)
at org.eclipse.ui.internal.ViewReference.createPartHe lper(ViewR eference.java:375)
at org.eclipse.ui.internal.ViewReference.createPart(V iewReferen ce.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.get Part(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.Perspective.showView(Persp ective.jav a:2245)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView (Workbench Page.java:1071)
at org.eclipse.ui.internal.WorkbenchPage$20.run(Workb enchPage.j ava:3822)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator .java:70)
at org.eclipse.ui.internal.WorkbenchPage.showView(Wor kbenchPage .java:3819)
at org.eclipse.ui.internal.WorkbenchPage.showView(Wor kbenchPage .java:3795)
at org.eclipse.ui.handlers.ShowViewHandler.openView(S howViewHan dler.java:162)
at org.eclipse.ui.handlers.ShowViewHandler.execute(Sh owViewHand ler.java:77)
at org.eclipse.ui.internal.handlers.HandlerProxy.exec ute(Handle rProxy.java:293)
at org.eclipse.core.commands.Command.executeWithCheck s(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.exe cuteWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.ex ecuteComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerServi ce.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handl eWidgetSel ection(CommandContributionItem.java:820)
at org.eclipse.ui.menus.CommandContributionItem.acces s$19(Comma ndContributionItem.java:806)
at org.eclipse.ui.menus.CommandContributionItem$5.han dleEvent(C ommandContributionItem.java:796)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display. java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1375)
at org.eclipse.swt.widgets.Widget.notifyListeners(Wid get.java:1 187)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.ja va:3622)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java :3277)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.jav a:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:24 38)
at org.eclipse.ui.internal.Workbench$7.run(Workbench. java:671)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Work bench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplica tion.start (IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(Eclips eAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:14 07)
I have installed eclipse for the third time, hoping this will work, trying over and over again but with no results the same internal error ... :(
Please help me i don't know what to do. .
- 10-12-2010, 10:39 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
Please don't ignore our posts, Iam a student and i can't start my projects.
- 10-12-2010, 11:02 PM #3
Senior Member
- Join Date
- Oct 2010
- Posts
- 317
- Rep Power
- 3
Hello trichask and welcome.
It's not a question of people ignoring your post, but not everyone uses Eclipse and probably even less know the answer. Adding additional post to your thread is not going to get you the answer any faster.
As a non-Eclipse user, the only thing I can suggest it that the application you are trying to run has not been compiled before attempting to run it.
This is only a guess mind so might not be the answer you are looking for.
Regards.
- 10-15-2010, 11:30 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
I found the solution. Please check this post
http://www.eclipse.org/forums/index....g&goto=488277&,
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.Last edited by trichask; 10-15-2010 at 11:33 AM.
- 01-04-2011, 04:39 PM #5
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/lang/XEventLi
By baktha.thalapathy in forum New To JavaReplies: 5Last Post: 06-02-2010, 01:05 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/lang/XEventLi
By baktha.thalapathy in forum Advanced JavaReplies: 3Last Post: 06-01-2010, 03:01 PM -
java.lang.NoClassDefFoundError
By AndrewM16921 in forum Java AppletsReplies: 3Last Post: 09-29-2009, 06:54 PM -
java.lang.NoClassDefFoundError
By noobie in forum Java AppletsReplies: 5Last Post: 04-22-2009, 02:35 AM -
java.lang.NoClassDefFoundError
By J_a_y in forum New To JavaReplies: 2Last Post: 08-07-2007, 11:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks