Archived Forum Post

Index of archived forum posts

Question:

UnsatisfiedLinkError using Chilkat in TomCat (Java)

Oct 01 '14 at 11:50

I am trying test chilkat.jar in my aplication, but this not work when try run tomcat 7 with jdk 1.7, and i copy the .so to /usr/lb64 and have this error

Estado HTTP 500 - javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: 
    com.chilkatsoft.chilkatJNI.new_CkMailMan()

type Informe de Excepción

mensaje javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: 
    com.chilkatsoft.chilkatJNI.new_CkMailMan()

descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento.

excepción

org.apache.jasper.JasperException: javax.servlet.ServletException: 
java.lang.UnsatisfiedLinkError: com.chilkatsoft.chilkatJNI.new_CkMailMan()
...

Answer

I would first recommend Googling "chilkat tomcat UnsatisfiedLinkError"

See this: http://stackoverflow.com/questions/1403788/java-lang-unsatisfiedlinkerror-no-dll-in-java-library-path
At the web page linked above, look for the information about Tomcat...

Also see: http://www.cknotes.com/tomcat-unsatisfiedlinkerror/

I also found this in another search result:

 Under the default chilkat.dll subdirectory in the project file, run the Java project, 
the absolute path of the project is the path of the project in the eclipse workspace, so 
the system according to the relative path correctly find chilkat.dll file; run on the Web 
works when loaded Tomcat, the absolute path of the system Tomcat installation directory 
BIN file path, when the need load chilkat.dll file, the system can not find the required 
files.

Solution 1: specified chilkat.dll store the absolute path

static { try { System.loadLibrary ("E :/ / ming / / workspace / / SearchGen / / chilkat.dll"); } Catch (UnsatisfiedLinkError e) { System.err.println ("Native code library failed to load. / N" + e); System.exit (1); } }

Solution 2: chilkat.dll copy to the Tomcat installation directory Bin file