- UNIX
% setenv LD_LIBRARY_PATH mylibrarypathwhere mylibrarypath is the directory name that containslibhello.so
.- DOS shell (Windows 95/NT)
- On Windows 95/NT, the
loadLibrary()
method searches thePATH
environment variable for DLL libraries. In addition,loadLibrary()
also searches the directory where the executables lives.