java.lang.NoClassDefFoundError: junit/framework/TestCase [message #218247] |
Wed, 02 November 2005 22:48 |
Eclipse User |
|
|
|
Originally posted by: mbrada.simpleway.cz
I have written an Eclipse 3.0.1 test plugin (developed in Eclipse 3.1.1)
and I want to run the tests. Unfortunately, every time I try to run it I
get this exception:
Unhandled event loop exception
Reason:
Failed to execute runnable (java.lang.NoClassDefFoundError:
junit/framework/TestCase)
*** SWT nested exception
Reason:
junit/framework/TestCase
Exception in thread "Thread-1" org.eclipse.swt.SWTException: Failed to
execute runnable (java.lang.NoClassDefFoundError: junit/framework/TestCase)
at org.eclipse.swt.SWT.error(SWT.java:2691)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:161)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:25)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:3022)
at
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.java:83)
at
org.eclipse.pde.internal.junit.runtime.UITestApplication.run Tests(UITestApplication.java:90)
at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:56)
at java.lang.Thread.run(Thread.java:595)
I have tried to add org.junit plugin in dependencies (into plugin.xml,
manifest.xml, only the classpath - and all possible combinations) but
the result was the same.
Nevertheless in another test plugin (the same target platform and
Eclipse) I notice no problem.
Any idea what may goes wrong?
Miloslav Brada
|
|
|
Powered by
FUDForum. Page generated in 0.02995 seconds