wrapper.system.library.path.override

対応バージョン :3.7.0
対応エディション :プロフェッショナル版スタンダード版コミュニティー版
対応プラットフォーム :WindowsMac OSXLinuxAlpine LinuxIBM AIXFreeBSDSolarisIBM z/Linux

This property can be used to replace the native library search path inherited from the parent environment with a custom path defined exclusively through the wrapper.system.library.path.<n> properties.

In general, it is a good security practice to override the inherited search path and restrict it to only the locations required by the application. This makes the configuration resilient to environment changes and prevents accidental loading of libraries from unexpected paths.

On Windows, setting this property to TRUE overrides the Path environment variable.

On macOS, setting this property to TRUE overrides the DYLD_LIBRARY_PATH environment variable.

On other Unix platforms, setting this property to TRUE overrides the LD_LIBRARY_PATH environment variable.

For backward compatilibity, the default value is FALSE, meaning that locations specified using the wrapper.system.library.path.<n> properties are prepended to the search path inherited from the parent environment rather than replacing it.

Example (override the environment and only load from the '../lib' folder):
wrapper.system.library.path.1=../lib
wrapper.system.library.path.override=TRUE

参照: ライブラリー