running dll method Javafx

孤人 提交于 2020-01-03 02:54:18

问题


I have C program (Dll) which I can call from Java using JNI. I want to use Javafx for the interface so I made a java class to call the dll. I am able to load the dll but I cannot call the method. The error message it gives me is

java.lang.UnsatisfiedLinkError: 
mark1.Small_test.tester(DDDLjava/lang/String;Ljava/lang/String;Ljava/lang/String;DDD)[D
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

I have used the same Dll and it works if I call with normal java. I am using netbeans for JavaFX. I have been stuck with this problem for a week. Any help is greatly appreciated.

来源:https://stackoverflow.com/questions/10339570/running-dll-method-javafx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!