Results 1 to 5 of 5
  1. #1
    trichask is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default 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:
    at :679)
    at 1633)
    at a:1597)
    at eDateForma
    at org.eclipse.ui.internal.views.log.LogSession.setDa te(LogSess
    at org.eclipse.ui.internal.views.log.LogSession.proce ssLogLine(
    at org.eclipse.ui.internal.views.log.LogReader.parseL ogFile(Log
    at org.eclipse.ui.internal.views.log.LogView.readLogF ile(LogVie
    at org.eclipse.ui.internal.views.log.LogView.createPa rtControl(
    at org.eclipse.ui.internal.ViewReference.createPartHe lper(ViewR
    at org.eclipse.ui.internal.ViewReference.createPart(V iewReferen
    at org.eclipse.ui.internal.WorkbenchPartReference.get Part(Workb
    at org.eclipse.ui.internal.Perspective.showView(Persp ective.jav a:2245)
    at org.eclipse.ui.internal.WorkbenchPage.busyShowView (Workbench
    at org.eclipse.ui.internal.WorkbenchPage$ 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
    at org.eclipse.ui.handlers.ShowViewHandler.execute(Sh owViewHand
    at org.eclipse.ui.internal.handlers.HandlerProxy.exec ute(Handle
    at org.eclipse.core.commands.Command.executeWithCheck s(Command. java:476)
    at org.eclipse.core.commands.ParameterizedCommand.exe cuteWithCh ecks(
    at org.eclipse.ui.internal.handlers.HandlerService.ex ecuteComma nd(
    at org.eclipse.ui.internal.handlers.SlaveHandlerServi ce.execute Command(
    at org.eclipse.ui.menus.CommandContributionItem.handl eWidgetSel ection(
    at org.eclipse.ui.menus.CommandContributionItem.acces s$19(Comma
    at org.eclipse.ui.menus.CommandContributionItem$5.han dleEvent(C
    at org.eclipse.swt.widgets.EventTable.sendEvent(Event :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 187)
    at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.ja va:3622)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Di :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 38)
    at org.eclipse.ui.internal.Workbench$ java:671)
    at org.eclipse.core.databinding.observable.Realm.runW ithDefault (
    at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Work
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.j ava:149)
    at org.eclipse.ui.internal.ide.application.IDEApplica tion.start (
    at run(Eclips
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher .runApplication(
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher .start(
    at n(EclipseS
    at n(EclipseS
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAcce
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMe
    at java.lang.reflect.Method.invoke(
    at org.eclipse.equinox.launcher.Main.invokeFramework( 619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:574)
    at 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. .

  2. #2
    trichask is offline Member
    Join Date
    Oct 2010
    Rep Power


    Please don't ignore our posts, Iam a student and i can't start my projects.

  3. #3
    Ronin is offline Senior Member
    Join Date
    Oct 2010
    Rep Power


    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.


  4. #4
    trichask is offline Member
    Join Date
    Oct 2010
    Rep Power


    I found the solution. Please check this post,

    To solve the issue:

    1. Decompress the 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/
    3. Replace = JDK

    with = ICU

    4. Recompress the 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 12:33 PM.

  5. #5
    bvercoutere is offline Member
    Join Date
    Jan 2011
    Rep Power


    A best way is to add this line in eclipse.ini file :

Similar Threads

  1. Replies: 5
    Last Post: 06-02-2010, 02:05 PM
  2. Replies: 3
    Last Post: 06-01-2010, 04:01 PM
  3. java.lang.NoClassDefFoundError
    By AndrewM16921 in forum Java Applets
    Replies: 3
    Last Post: 09-29-2009, 07:54 PM
  4. java.lang.NoClassDefFoundError
    By noobie in forum Java Applets
    Replies: 5
    Last Post: 04-22-2009, 03:35 AM
  5. java.lang.NoClassDefFoundError
    By J_a_y in forum New To Java
    Replies: 2
    Last Post: 08-07-2007, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts