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

  1. using ld_library_path
  2. create symlink in standard directories library

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -