Event Callbacks in Java

Event callbacks in Java (including Android) are supported starting in v9.5.0.52. To receive event callbacks, first create a Java class derived from one of the Chilkat event callback classes. The event callback classes are: CkBaseProgress, CkHttpProgress, CkZipProgress, CkFtp2Progress, CkMailManProgress, CkTarProgress, and CkSFtpProgress. All future Chilkat classes will only use CkBaseProgress. Theses event callback classes will be documented in the “Events” […]

Chilkat Java library now available for MAC OS X

The Chilkat Java library is now available for MAC OS X. For the download link and more information, see http://www.chilkatsoft.com/installJavaMacOSX.asp Chilkat will soon release MAC OS X compatible builds for Perl, Python, and Ruby. Following that, builds for the IOS (IPhone) will be released, along with Objective-C/C++ native libraries for both MAC OS X and IPhone.

Using Chilkat for Java in Eclipse on Windows

Here are the steps I followed to use Chilkat’s Java library in an Eclipse project on Windows: Open Project->Properties, select “Java Build Path”, click on the “Add External JARs…” button and add the “chilkat.jar” (still within the Project Properties dialog) Click on the “Run/Debug Settings”, select your Java class, then click on the “Edit…” button.  Select the “Arguments” tab, then […]

Java Create Signature / Chilkat Verify Interoperability

The following Java code produces a digital signature that can be verified using Chilkat RSA.  Links to the Chilkat signature verification examples follow this code.  The Java signature creation code does not use Chilkat to produce the digital signature.  It also demonstrates how to save a generated key (public and private) to DER files that can be used with Chilkat […]

Tomcat UnsatisfiedLinkError

If Java (running under Tomcat or any other environment) cannot load the Chilkat library, make sure the chilkat.dll and chilkat.jar are located in a directory listed in the java.library.path. You can view the java.library.path in your environment by inserting this line of code: System.out.println(System.getProperty(“java.library.path”))

Using SYSTEMTIME in Java

Chilkat methods that return date/time information do so using SYSTEMTIME. The reason is that Chilkat’s C++ API uses SYSTEMTIME (a MS Windows struct for holding date/time information) and these are wrapped to produce the Java (JNI) API. Here is an example showing how to access the contents of SYSTEMTIME: CkEmail email = new CkEmail(); SYSTEMTIME dt = new SYSTEMTIME(); email.get_LocalDate(dt); […]