Project Panama & dynamic library loading

Ty Young youngty1997 at gmail.com
Fri Sep 6 23:24:23 UTC 2019


Hi,


I mentioned this before in a linked article I did, but another major 
issue with current jextract/java library pathing is that it is static 
instead of dyanamic(that is, a specific path). This causes huge problems 
not only with cross-platform libraries but also in the heavily 
fragmented Linux ecosystem. NVML(Nvidia Management Library) for example 
exists in entirely different locations in /usr/lib in Ubuntu, Arch, and 
Fedora as well as in Windows. As a result, bindings have to be generated 
multiple times even on the same platform in order to work correctly.


Can a way to dynamically specify the library path from within Java be added?



More information about the panama-dev mailing list