I would like to set the -Djava.library.path
VM option to a specific folder. However, it is not relative to my project folder so that I could say for example:
-Djava.library.path=native\windows
(The folder native is in the project folder.)
Do you know if this is somehow possible to set it like above and not with -Djava.library.path=C:\...
?
You actually can set a relative path. For example if you start your program a specific folder, you can access libraries in a folder "libs" right next to it by setting the path to "../libs" e.g.
In my own project with native libraries I have this in my shell script:
-Djava.library.path=../../native/unix
Hope this answers your question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With