facebook

NoClassDefFoundError

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #279956 Reply

    ** Date:
    Saturday, December 22, 2007 7:50:53 PM PST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.6.0_03

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    Eclipse SDK

    Version: 3.3.1.1
    Build id: M20071023-1652

    Eclipse Project SDK

    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652

    Eclipse Plug-in Development Environment

    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20071023-1652

    Eclipse Platform

    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse RCP

    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: M20071023-1652

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: M20071023-1652

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\ECLIPSE_HOME\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\ECLIPSE_HOME\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
    -startup
    C:\ECLIPSE_HOME\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -vm
    C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll

    *****PROBLEM*****
    app is an RCP using latest myEclipse Spring and Hibernate capabilities, and Derby DB v.10.3.2.1.

    app runs ok as Java app, but as Eclipse app, I get the following error message:

    java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
    at com.ecoknowmics.vpe.rcp2.View.createPartControl(View.java:77)
    at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:370)
    at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
    at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
    at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
    at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
    at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:564)
    at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
    at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
    at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2515)
    at org.eclipse.ui.internal.WorkbenchWindow$23.run(WorkbenchWindow.java:2837)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2818)
    at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:735)
    at org.eclipse.ui.internal.Workbench$20.runWithException(Workbench.java:1023)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:801)
    at org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1342)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152)
    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:118)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
    at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
    at org.eclipse.ui.internal.Workbench.init(Workbench.java:1337)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2319)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.ecoknowmics.vpe.rcp2.Application.start(Application.java:20)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

    How do I go around this? Thanks.

    #279974

    Loyal Water
    Member

    Was this app created from scratch using MyEclipse ?

    #280017

    No. I used the Eclipse RCP Mail template to get started with a Perspective, View, and Editor

    #280039

    Loyal Water
    Member

    I guess thats creating the problem here. Can you create a new MyEclipse app and transfer your code to this app and try again.

    #280057

    The code worked fine if I ran it as a Java app. But I get the “NoClassDefFoundError” message if I ran it as an Eclipse RCP app. It seems Eclipse apps use a different classloader?

    #280089

    Can I conclude then that I simply will not be able to develop/deploy an Eclipse RCP app using myEclipse Spring capabilities?

    #280133

    Loyal Water
    Member

    This message has not been recovered.

    #280211

    This message has not been recovered.

    #280308

    Riyad Kalla
    Member

    This message has not been recovered.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: NoClassDefFoundError

You must be logged in to post in the forum log in