Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot for RAD 8.0(SWTBot for RAD 8.0 )
SWTBot for RAD 8.0 [message #955302] Tue, 23 October 2012 17:37 Go to next message
gourav mehta is currently offline gourav mehta
Messages: 9
Registered: June 2012
Junior Member
I am trying to use SWTBot for RAD 8.0 but i am getting error while running from headless.

[echo] ======================================
[java] Exception in thread "WorkbenchTestable" java.lang.NoClassDefFoundErr
or: junit.framework.TestListener
[java] at java.lang.ClassLoader.defineClassImpl(Native Method)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defi
neClass(DefaultClassLoader.java:188)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineCl
ass(ClasspathManager.java:580)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClas
sImpl(ClasspathManager.java:550)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoca
lClassImpl(ClasspathManager.java:481)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoca
lClass_LockClassLoader(ClasspathManager.java:469)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoca
lClass(ClasspathManager.java:449)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.find
LocalClass(DefaultClassLoader.java:216)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(
BundleLoader.java:390)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClassIntern
al(BundleLoader.java:469)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bundl
eLoader.java:422)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bundl
eLoader.java:410)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.load
Class(DefaultClassLoader.java:107)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.defineClassImpl(Native Method)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defi
neClass(DefaultClassLoader.java:188)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineCl
ass(ClasspathManager.java:580)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClas
sImpl(ClasspathManager.java:550)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoca
lClassImpl(ClasspathManager.java:481)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoca
lClass_LockClassLoader(ClasspathManager.java:469)
[java] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoca
lClass(ClasspathManager.java:449)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.find
LocalClass(DefaultClassLoader.java:216)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(
BundleLoader.java:390)
[java] at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClas
s(SingleSourcePackage.java:33)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClassIntern
al(BundleLoader.java:457)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bundl
eLoader.java:422)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bundl
eLoader.java:410)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.load
Class(DefaultClassLoader.java:107)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at org.eclipse.swtbot.eclipse.junit3.headless.EclipseTestRunner.
createFormatter(EclipseTestRunner.java:453)
[java] at org.eclipse.swtbot.eclipse.junit3.headless.EclipseTestRunner.
createAndStoreFormatter(EclipseTestRunner.java:435)
[java] at org.eclipse.swtbot.eclipse.junit3.headless.EclipseTestRunner.
run(EclipseTestRunner.java:179)
[java] at org.eclipse.swtbot.eclipse.junit3.headless.UITestApplication.
runTests(UITestApplication.java:117)
[java] at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Workb
enchTestable.java:71)
[java] at java.lang.Thread.run(Unknown Source)
[java] Caused by: java.lang.ClassNotFoundException: junit.framework.TestLis
tener
[java] at java.lang.ClassNotFoundException.<init>(Unknown Source)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClassIntern
al(BundleLoader.java:430)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bundl
eLoader.java:422)
[java] at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bundl
eLoader.java:410)
[java] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.load
Class(DefaultClassLoader.java:107)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] ... 37 more

Re: SWTBot for RAD 8.0 [message #981310 is a reply to message #955302] Mon, 12 November 2012 10:12 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
On 10/23/2012 07:37 PM, gourav mehta wrote:
> I am trying to use SWTBot for RAD 8.0 but i am getting error while
> running from headless.
>
> [echo] ======================================
> [java] Exception in thread "WorkbenchTestable"
> java.lang.NoClassDefFoundErr
> or: junit.framework.TestListener

A ClassNotFoundException would mean that you are missing the junit
dependency to JUnit4 bundle.
A NoClassDefFoundError without a ClassNotFound may be an incompatible
version of Java.
Seek for the cause of this NoClassDefFound error and you'll get a very
helpful hint.

Which version of Java are you using? What is the minimal requirement for
this JUnit class to load?

--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:activate a tab in the properties view
Next Topic:Running tests unattended
Goto Forum:
  


Current Time: Fri Oct 31 04:03:44 GMT 2014

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

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