I searched a lot in So. But could not find a proper solution. Here is the problem
I have some .so files to load in my java application.
I created a Java class with main method and loading it using System.load();
System.load("/home/myfolder/TFS-SDK-11.0.0/redist/native/linux/x86_64/libnative_auth.so");
System.load("/home/myfolder/TFS-SDK-11.0.0/redist/native/linux/x86_64/libnative_console.so");
And then my Java codes. When I run the class as Java application, it is working fine.
Then I added the same code in my Java web application. And I run it in tomcat. But It is showing some error
Exception in thread "main" java.lang.UnsatisfiedLinkError
I found that this is because it is not loading the library files.
When I searched in google, I found some solutions but it didnt help me. I tried adding the so file location in
setenv.sh, catalina.sh in JAVA_OPTS. But none worked.
Some solutions I don't even understood.
Can someone give the step by step proces of
Where to put the so files in tomcat? Which file I should edit and What should I add?
I searched a lot. But most answers I don't understand.