- UNIX
% setenv LD_LIBRARY_PATH mylibrarypathwhere mylibrarypath is the name of the directory that containslibhello.so
.
- DOS shell (Windows 95/NT)
- On Windows 95/NT, the
loadLibrary()
method searches for DLLs in the same manner as other language environments do.
- MacOS
- The Java runtime searches the
JavaSoft Folder
in theExtensions
folder in theSystem Folder
for shared libraries. Create an alias to your shared library in theJavaSoft Folder
.