Question:
Can I include DLLs and/or .so files in the same JAR file as my application?
Will the application be able to call those DLLs or shared objects in the JAR file? If not, then what is the best way to distribute DLLs with my application if I want everything to be included in a single file?
Answer:
Windows:
UNIX/Linux:
The JVM looks for shared libraries and objects in the directories contained in the library path.
This path is set with a system dependent environment variable.
Similar to the Windows PATH variable, Linux systems look for the LD_LIBRARY_PATH variable, for instance.
You can see a table showing the most common environment variable names in the isCOBOL Evolve manual set.
Browse to the Introduction/The Basics/ isCOBOL and Java/The Library Path.
Article ID: 45
Created: August 31, 2009
Last Updated: August 24, 2022
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=45