Details
-
Type:
Enhancement
-
Status: Resolved
-
Priority:
P4
-
Resolution: Won't Fix
-
Affects Version/s: repo-panama
-
Fix Version/s: None
-
Component/s: tools
-
Labels:
-
Subcomponent:
Description
LibraryLookup.ofName looks up a library name in the default system library paths. These paths are hardwired in the hotspot code and typically include just /usr/lib and other few common locations.
The set of paths can be altered by setting the JDK property "java.library.path" - but other frameworks, such as JNR are smarter in this respect, and try to take full advantage of the environment they are executing on (for instance, on Linux, JNR uses `ld` and its cache to locate where libraries are).
To improve usability, it would be great if LibraryLookup could be enhanced in a similar fashion.
The set of paths can be altered by setting the JDK property "java.library.path" - but other frameworks, such as JNR are smarter in this respect, and try to take full advantage of the environment they are executing on (for instance, on Linux, JNR uses `ld` and its cache to locate where libraries are).
To improve usability, it would be great if LibraryLookup could be enhanced in a similar fashion.
Attachments
Issue Links
- relates to
-
JDK-8265222 revisit foreign library loading
-
- Resolved
-
-
JDK-8262127 jextract often fails to resolve headers in system include folders
-
- Open
-