Run-Time Error Messages
If you get a Java error message, such as "interface library CJavaInterface cannot be found" or "bessely0 function cannot be found" when running your program, you may need to set an environment variable to tell the system where to look. Environment variable names are operating-system dependent.
- Linux machines. The environment variable LD_LIBRARY_PATH is a colon-separated list of directories to be searched for libCJavaInterface.so. For example, if you use the C shell and your library is in /home, the command setenv LD_LIBRARY_PATH /home ensures that the directory /home gets searched.
- Other UNIX machines. The environment variable is likely discussed in the man page for the ld command, or in a command referenced by that man page. Common names include LD_LIBRARY_PATH and SHLIB_PATH.
- Microsoft Windows. There is no separate environment variable used for locating DLLs. The PATH variable is searched, so CJavaInterface.dll must reside somewhere in your path.
M.P.
Back to Article