I'm developing a Web Service using Java, through Eclipse, Version : Luna Service Release 2(4.4.2).
Now I need to access some methods which defined in some .dll files, I use System.load
to reference the .dll files
, like
System.load(currentPath + "\\myLib.dll");
My question is, I've put all my .dll files in the correct folder, but when I invoke the method, these exception will appear :
The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
java.lang.UnsatisfiedLinkError:
...
and
Servlet.service() for servlet [jersey-serlvet] in context with path [/FVSService] threw exception [java.lang.UnsatisfiedLinkError: com.gorilla.SmartCityService.tasks.IODSearcher.searchIODBatchEventNative([BILjava/util/Date;Ljava/util/Date;I[Lcom/gorilla/SmartCityService/tasks/IODSearcher$LABColor;[FI[BIIIII[Lcom/gorilla/SmartCityService/tasks/IODSearcher$IODBatchEvent;I)I] with root cause
java.lang.UnsatisfiedLinkError:
...
I've searched dozens of articles here and other sites, but few information are really useful to me. I tried change the paths to absolute rather then relative, or put the .dll files in the [JRE]/bin, but the question still exist.
My Java Servlet container is Jetty. Any suggestions will be appreciate!