KBEC-00247 - SDK 2.0 Class locations and instructions

Article ID:360032829092
1 minute readKnowledge base

Summary

Where are the request/response classes in CommanderSDK 2.0?

Solution

In SDK 2.0 some packages changed and a new jar file called commander-client.jar was introduced. Requests and responses live in commander-client.jar as of SDK 2.0. The file commander-client.jar is now shipped with CloudBees CD (CloudBees Flow) in the CloudBees CD (CloudBees Flow) InstallDir/utils directory as of CloudBees CD (CloudBees Flow) v4.2.1.

You may have to contact Electric Cloud Technical Support to get a copy of the commander-client.jar if you are not running v4.2.1 and later.

Including in classpath

For Linux, the commander-client.jar will automatically be included in the classpath.

For Windows, simply placing commander-client.jar in the utils directory may not build it into the classpath. You have to reset the COMMANDER_HOME ENV variable to C:\Program Files\Electric Cloud\ElectricCommander without quotes.

Applies to

  • 4.2.0 and earlier

  • OS versions: Linux, Windows