Question ID : 45
Created on 2009-08-31 at 5:27 PM
Author : Veryant Support [support@veryant.com]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=45
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.