Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to add external jar file into Plug-in Dependencies hierarchy under SWTBot Test Plug-in project
How to add external jar file into Plug-in Dependencies hierarchy under SWTBot Test Plug-in project [message #892416] Thu, 28 June 2012 07:46
Ginger C is currently offline Ginger CFriend
Messages: 1
Registered: June 2012
Junior Member
Hi all,

I am writing an automated test to operate the project components on Rational Software Architect. Due to the test requirement, I need to add an external jar file which contains the FTPClient class under SWTBot Test Plug-in project.

I have tried not only to put the external jar file in dropins / features / plugins folder and restart RSA to load this jar file, but also to configure Java Build Path to add external jar.

However, the following exceptions pop up at runtime.

I found the external jar file was not placed into Plug-in Dependencies hierarchy under SWTBot Test Plug-in project, but directly under SWTBot Test Plug-in project.

Does anyone know how to add external jar file into Plug-in Dependencies hierarchy under SWTBot Test Plug-in project? Thanks!!

The attached file is the external jar file.

The exceptions:
java.lang.NoClassDefFoundError: org.apache.commons.net.ftp.FTPClient
at com.ibm.rsa.AbstractClass.uploadDB2SQL(AbstractClass.java:375)
at com.ibm.rsa.AbstractClass.applyDB2SQL(AbstractClass.java:367)
at com.ibm.rsa.genSQL.runGenConfig(genSQL.java:51)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner.run(SWTBotJunit4ClassRunner.java:54)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64)
at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.net.ftp.FTPClient
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 31 more

[Updated on: Thu, 28 June 2012 10:22]

Report message to a moderator

Previous Topic:SWTBot cannot find pop up message box
Next Topic:Cannot find Toolbar button in property view
Goto Forum:
  


Current Time: Thu Apr 25 00:56:44 GMT 2024

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

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

Back to the top