Chilkat for Java on Solaris Install Instructions
Download the binary distribution and extract to any directory.
The download contains the following files:
2. Extract to any Directory
gzip -dc chilkatJava-9.5.0-x86_64-solaris.tar.gz | tar -xof -
3. Run Test.java to Verify it Works
Run runTest.sh to verify that Test.java can be compiled and run. The Test.java program simply verifies that the libchilkat.so (a JNI dynamic library) can be loaded, that the Java class loader can load the Chilkat classes from the chilkat.jar, and that a Chilkat object can be instantiated.
Sample code is available at: Chilkat Java Examples.
4. Using System.load and System.loadLibrary to load a Native Shared Library
See: How to use System.loadLibrary to load a Java Native shared library (.so)
5. classpath and using JAR archives
See: Java JAR Archives and classpath.
If the following error occurred when running the sample, it is because the wrong library was downloaded (32-bit vs. 64-bit). Try the other to see if it resolves the problem.
Native code library failed to load.
java.lang.UnsatisfiedLinkError: /home/chilkat/test/libchilkat.so: ld.so.1: java: fatal:
/home/chilkat/test/libchilkat.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
7. 30-Day Trial for Commercial Classes
Chilkat's commercially licensed Java classes are fully-functional for a 30-day trial period. The UnlockComponent method should be called once at the beginning of a program. The trial period automatically begins when a non-valid unlock code is used. Licensed customers receive a permanent unlock code that is valid for all future versions of the particular class(es) licensed.
Note: The Chilkat Java library contains both freeware and commercially-licensed classes. Freeware classes, such as the ones for XML
and digital certificates, do not have an UnlockComponent method
and do not need to be unlocked.
CkZip zip = new CkZip();
zip.UnlockComponent("anything for 30-day trial");