By chasedream
This is the first time I use a DigitalOcean server. I appreciate your time to help!
I am trying to load a native library (libjsmile.so) in a web application with Apache Tomcat 7 on a CentOS 7 DigitalOcean server, but I still haven’t succeeded.
– I was able to use the libraray (the .jnilib version) as a Java application or a web application with Apache Tomcat 7 on a Mac. – I was able to load the libjsmile.so as a Java application on this CentOS 7 server. – The error starts to occur when I changed to an web application trying to load libjsmile.so in Apache Tomcat 7 in this CentOS 7 server.
I have tried to add
LD_LIBRARY_PATH=“$LD_LIBRARY_PATH:/usr/share/tomcat/lib”
and/or
JAVA_OPTS=“-Djava.library.path=/usr/share/tomcat/lib”
to the Tomcat configuration file (tomcat.conf) and put the libjsmile.so under that path. Yet it keeps giving me “java.lang.UnsatisfiedLinkError: smile.Wrapper.nativeStaticInit()” error.
I am not that experienced in web development and Linux, so I really appreciate any amount of help!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.