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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -