Absent Member.
Absent Member.
1041 views

NoClassDefFoundError when executing Silk4J test in Silk Central

I'm just getting started with Silk Central / Silk4J. I created some keywords in Silk4J and uploaded them to Silk Central. I created a sample test in Silk Central using a keyword and am getting a NoClassDefFoundError for the Desktop class from the silktest-jtf-nodeps jar. I modified the build.xml to include the buildlib folder jars in the output, but it didn't fix the problem. Is there a directory on the Silk Central server or the execution server where I need to drop the jars in order for the classes to be found, or is there some sort of configuration problem? I haven't found any posts by anyone having this issue, and I've scoured the documentation to no avail.

 

0 Likes
2 Replies
Absent Member.
Absent Member.

Hi,

I think you have to add the silktest-jtf-nodeps jar path (relating the execution server local path to the jar) in the classpath property of the test in SilkCentral (default = C:\Program Files (x86)\Silk\SilkTest\ng\JTF\silktest-jtf-nodeps jar )
You may also need to declare other jars in the classpath (maybe like SilkTest_Java3.jar) regarding to the dependencies used in your tests.
0 Likes

Hi,

If you create the same test in Silk Test - can you run it successfully?

There could be several reasons for your problem - like ST/SC version problem, problem with ST version installed on the execution server, etc. - please work with the support team for quickest resolution.

Thanks,
Florian
Product Owner - Silk
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.