Hi,
I've created the dll file and loading that from the Controller class by calling the system.loadLibrary("test.dll");
The JNI Functionality is working fine if the caller is a standalone java application.
For Web applications, i am getting UnsatisfiedLink Error.
Why is it not working in WebApplications where as working in Standard Java Applications? Do i need to do any changes? The same result holds for different web applications i tried (servlets, struts). Any Help is highly appreciated.
Here is what i am trying to do:
TestController.groovy
Test.java
I am getting below error:
org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.UnsatisfiedLinkError: Test.create()J
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1062)
Thanks,
Kiran
[NK:
UseCodeTags]