Forgive my ignorance, but what would be needed to adapt it to run in a Linux VPS? The original library is available for Linux.
I'd also like to know if this project is being maintained and developed further.
I think I've also found a bug but I don't know how to contribute and if there are any updates after last year's release.
Note that the wrapper is written in java to use it in b4j
But you may be able to add linux support if you add the .so file named as chillkat.so and put it inside the chilkat-bundle.jar/lib/yourarchtouse/libchillkat.so
@Erel Do you know in which "arch"-Folder the .so file needs to be placed to use it in Linux?
b4j-libfolder\src\*.java
b4j-libfolder\lib\{arch}\libchilkat.so
For Windows it must be
b4j-libfolder\lib\x86\libchilkat.so
or
b4j-libfolder\lib\x86_64\libchilkat.so
I tried to put the libchilkat.so file in the same path as the jar but it did not work.
From the error log I found out that it had to be placed in one of the java.library.path:
[/usr/java/packages/lib, /usr/lib/x86_64-linux-gnu/jni, /lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]
Take the chilkat.jar, rename it to zip. Open the zip. Add the .so file as libchilkat.so to the lib folder in the zip.
Rename the zip back to .jar... Try again
Sorry, I wanted to say that it works by simply copying the libchilkat.so file into /usr/lib with no further changes to other files
I want to try your suggestion as it looks cleaner, but I'm not clear if the chilkat.jar file you're talking about is the one from the Chilkat library download (see screenshot below) or you actually mean the ChilkatBundle.jar file.
Placing the .so file in the lib folder of the Bundle JAR does not seem to work. Same error as with the original Bundle JAR:
main._process_globals (java line: 192)
java.lang.UnsatisfiedLinkError: no chilkat in java.library.path: [/usr/java/packages/lib, /usr/lib/x86_64-linux-gnu/jni, /lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2670)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at de.donmanfred.CkGlobalwrapper.<clinit>(CkGlobalwrapper.java:215)
at b4j.example.main._process_globals(main.java:192)
at b4j.example.main.initializeProcessGlobals(main.java:183)
at b4j.example.main.main(main.java:27)