Archived Forum Post

Index of archived forum posts


correct way to compile and deploy java app to multiple OS

Aug 15 '17 at 07:12

We are using the chilkat libraries in a java app that will be deployed to Windows, Linux and Mac. We have downloaded the libraries for Java for all 3 platforms. From a deployment perspective, it seems clear to simply include chilkat.dll for Windows, for Linux and libchilkat.jnilib for Mac. However, the chilkat.jar file appears to be different for each platform, so I am unsure of how to compile and deploy that dependency. Is the jar file platform dependent as well?


The jar really isn't platform dependent. The Windows version of the jar would include some methods/properties in some classes that are Windows-only. For example, things having to do with Windows Certificate Stores, etc. If your code is cross-platform, then you wouldn't be using any of the Windows specific functionality, so you could pick either the Linux or Mac jar to use for all three systems.


Great, thanks!