- Documentation
- Configuration Property Overview
- JVM Configuration
- wrapper.java.library.path.<n> Property
wrapper.java.library.path.<n> |
||||||||||||||||||||||||
These properties are used to specify a list of directories in which to look for any native (JNI) libraries used by the application. You must place the Wrapper native library (Windows: wrapper.dll, Linux/UNIX: libwrapper.so) in one of the directories specified. <n> component: Each element has a property name which starts with wrapper.java.library.path. and the "<n>" component of the property name is an integer number counting up from "1". By default, there can be no missing numbers. The wrapper.ignore_sequence_gaps property can optionally be set to allow gaps in the sequence.
It is also possible to get the default Java behavior by requesting that the system path be appended to the end of the Java library path generated by the Wrapper. Please read the documentation, associated with the wrapper.java.library.path.append_system_path property before doing so. NOTELibrary Path entries containing spaces: The Wrapper will correctly handle path elements containing spaces. This is done by enclosing the final generated library path in quotes. Individual library path element property values should never be defined containing quotes even if they contain spaces. NOTESome native libraries reference other dynamically linked libraries. Java will locate the initial JNI library using the Java library path, but the secondary libraries are loaded using the default mechanism for the platform. On Windows, the system will first look in the current working directory (The location of the wrapper.exe), then it will look in the Windows system32 directory and the Windows directory. Finally, it will search the entire system PATH. If both DLLs are located in your application's lib directory, it may be necessary to add its location to your system path as follows. The set.PATH is for Windows and the set.LD_LIBRARY_PATH makes the configuration file cross platform so it works on UNIX systems as well. Mac OSX also makes use of the set.DYLD_LIBRARY_PATH variable.
Note that placing the secondary library on the PATH rather than in the current working directory has a risk that an old version of the library could be encountered first in the Windows system32 directory if it was installed by another application. This is due to the order in which the system looks for the file. This problem has been seen when working with SAP's JCO libraries if other SAP applications are also installed on the system.
|
Reference: Library |
|