Forum Discussion
Hello RagsKasthuri
Are you sure you created your JAR file correctly? I just experienced this same issue...
What I did first was...
compile- groovyc to create .class file
jar- jar to create .jar file from .class --- output of jar creation only showed manifest and .class file in output.
Used the jar file that was created and put in Smartbear .lib folder with all the rest of the .jar files.
when I ran my script that accesses my new .jar, I got your message "unable to resolve class"...
I then rebuilt .jar with the source .groovy file and the compiled .class file with both in same directory. I noticed the jar built with the source file this time where the first time it did not show in the verbose output. Copied this new improved .jar file to Smartbear .lib folder and ran my test step groovy script again that would access my class and I had success.
Long story short... try build of your jar to include source file if you didn't for your attempt.
Regards,
Todd
Related Content
- 3 years ago
Recent Discussions
- 15 years ago