We can currently set "-Djava.library.path" or DYLD_LIBRARY_PATH/LD_LIBRARY_PATH to have "System.loadLibrary()" find its library, but "-agentlib" only uses DYLD_LIBRARY_PATH/LD_LIBRARY_PATH and ignores "-Djava.library.path"
Java VM should be consistent and allow platform independent way, ie. "-Djava.library.path" of specifying where to look for libraries it needs.
In addition, DYLD_LIBRARY_PATH on Mac is not ideal to use (meant for testing) and subject to control by SIP (Apple's System Integrity Protection), which requires one to use bypass flags if one wants it exported to a subshell (see INTJDK-7621718 and INTJDK-7623593)
Java VM should be consistent and allow platform independent way, ie. "-Djava.library.path" of specifying where to look for libraries it needs.
In addition, DYLD_LIBRARY_PATH on Mac is not ideal to use (meant for testing) and subject to control by SIP (Apple's System Integrity Protection), which requires one to use bypass flags if one wants it exported to a subshell (see INTJDK-7621718 and INTJDK-7623593)
- clones
-
JDK-8162348 nsk/jvmti/ tests fail with "Could not find agent library ... on the library path"
-
- Resolved
-
- relates to
-
JDK-8153085 nsk/jvmti/ tests fail in hs nightly on OSX
-
- Closed
-