Java
Java
Get Version of Chilkat
Demonstrate how to find out the version of Chilkat at runtime.Chilkat Java Downloads
import com.chilkatsoft.*;
public class ChilkatExample {
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
// Most Chilkat classes include a Version property.
// To find the version of Chilkat, such as "9.5.0.94",
// instantiate the object and examine the Version property.
// For example:
CkSFtp sftp = new CkSFtp();
String chilkatVersion = sftp.version();
System.out.println(chilkatVersion);
// Most other Chilkat classes also have the Version property
// For example:
CkJsonObject json = new CkJsonObject();
System.out.println(json.version());
}
}