I have OR-Tools v8.1.8487 application using Spring Boot platform.
The application works very well on spring embedded Tomcat server
when run from VSCODE.
However, when I deploy .war file on standalone Tomcat v9.0.44 installation, it throws the following exception:
java.lang.UnsatisfiedLinkError: com.google.ortools.constraintsolver.mainJNI.swig_module_init()V
I have VS2019 redistributable installed.
Using Dependency Walker on jniortools.dll file I have created Tomcat's bin\setenv.bat file to set CATALINA_OPTS:
set CATALINA_OPTS=-Djava.library.path="%ProgramFiles%"\Java\jdk-12\bin;%SystemRoot%\system32;%SystemRoot%;"%CommonProgramFiles(x86)%"\Oracle\Java\javapath;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\OpenSSH;
All that didn't solve the problem. I ran out of ideas. Perhaps someone came across similar problem and could share some tips.