java.library.path not set as LD_LIBRARY_PATH

New to Linux? Feel free to post in here for installation help and other topics.
Post Reply
admin
Site Admin
Posts: 50
Joined: Sun Aug 08, 2021 7:49 am

java.library.path not set as LD_LIBRARY_PATH

Post by admin »

I'm running apache tomcat on a Linux machine hosted on google cloud, a standard machine without anything fancy.

The machine host's back_end Java API business application requires certain binary .so files to link to when running.

The required libraries are added to $LD_LIBRARRY_PATH

But when i run tomcat, java.library.path does not include this, and i get the error:

31-May-2022 11:20:16.378 INFO [main] jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-li nux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]

I'm out of ideas, how do I setjava.library.path includes $LD_LIBRARY_PATH when java runs?

Krgds.
User avatar
ChinaTes
Posts: 25
Joined: Wed Dec 29, 2021 8:57 pm
Location: https://clck.ru/33YjAh
Contact:

-

Post by ChinaTes »

Hi, i just came from LQ via a users link. I im curious as to know why my java scripts dont work on my linux server. Do i need this installed on my box to allow processing of java scripts? Thankx
Post Reply