Reflection component : Invoke External method [Execution Error: "java.lang.ClassNotFound] [message #1758394] |
Tue, 28 March 2017 07:35  |
Eclipse User |
|
|
|
i have created an jar file [ Executeable jar file] and placed in <Installaion Directory>/ite/externaljars Folder. -->> JAR Name [testjar.jar] which includes com.test.pck [package name ] , class1[class name] and filecreate [method name]
Component Details:
Component type : Reflection Component
Action Type : Invoke External Method
parameter :
fqcn = com.test.pck.class1 [class1 is class name]
Method name : filecrete
while excuteing it unable to find the jar folder and the class...
But it throws ----- >> Execution Error: "java.lang.ClassNotFoundException: External jars could not be loaded."
Please help on this that if i have an issue in path folder? or with class name ?
Thanks,
Muthu
|
|
|
|
|
|
|
|
|
Re: Reflection component : Invoke External method [Execution Error: "java.lang.ClassNotFound] [message #1766135 is a reply to message #1765933] |
Fri, 16 June 2017 06:17   |
Eclipse User |
|
|
|
Hi Marvin,
Thanks for your response. The main message is that the same jar used successfully with Swing AUT fails with RCP AUT.
The test actually does not call anything from AUT. AUT is only started to provide a context. The test starts only my external method.
I am not blocked by any rights, I am on the d:, Windows 7.
For creating jar I use Eclipse for Java Developers, neon.3.
In this test I have only one static method in the class and this method counts directories in the specified directory. No main, so exported as a normal jar (not executable).
If you would like to retest it, you can create two projects, one for toolkit Swing, second one for toolkit RCP. You can assign any Swing program and any RCP program, they only must be executable, so that you can start them.
In my project I created one more project LibraryExternalMethods, based on the toolkit concrete and I reuse this project both in Swing and RCP projects.
jar file is in ..\ite\externaljars as required. jar file is attached as well as screenshots.
In none of log files in .jubula.logs is any record from today, when I started the test.
Best Regards
Milos
|
|
|
|
Powered by
FUDForum. Page generated in 0.05930 seconds