c++ - Java System.loadLibrary does not lookup in /usr/lib/x86_64-linux-gnu/ folder for library -
oracle java 1.8 not lookup /usr/lib/x86_64-linux-gnu/
folder load native library.
i have installed openssl library, installed in /usr/lib/x86_64-linux-gnu/
folder, while loading java using system.loadlibrary()
, lookup path
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
am missing configuration? updating env ld_library_path
works but preferred programmatic approach avoid additional steps.
edit
agreed. programmatic hack not sustainable option. running native executable loads library arch /usr/lib/x86_64-linux-gnu/
folder. java not looking in arch folder.
i think programmatic way bad idea. doing on platforms???
i see 2 ways solve problem
- using ld_library_path
- create symlink in standard directories library
Comments
Post a Comment