Using the "Native Path" field for Resource Configuration
 Technote (troubleshooting)
 
Problem(Abstract)
How should the "Native Path" be configured?
 
Resolving the problem
The setting of the native path does not work inside of IBM® WebSphere® Application Server for shared libraries that reference another shared library. The shared library path for these must be set in the operating system's environment variable (which is platform specific) for the userid that starts Application Server:
Windows Platforms:
PATH
AIX®
LIBPATH
Solaris®, Linux®
LD_LIBRARY_PATH
HP-UX®
SHLIB_PATH

The rest of the discussion uses LD_LIBRARY_PATH as environment variable for shared library path.

Explanation
When Java™ code calls loadLibrary, it gives the ClassLoader to load
  • the shared libraries internally defined by IBM WebSphere Application Server first, then
  • the shared libraries defined by the environment variable LD_LIBRARY_PATH
There is no way to dynamically add to the LD_LIBRARY_PATH via Java. The limitation is that a shared library must not depend on another shared library defined in the the native path. This is a limitation but is working as designed.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Classloader
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1107799
IBM Group: Software Group
Modified date: May 29, 2003