Jni
各位师兄师姐好,小弟在java调用c++是出现了一个问题,几天了都没能解决,忘大家帮忙啊
我用eclipse cdt编写完c++代码后并成功编译生成了dll文件,可是在调用的时候出现了如下错误
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.easytoo.union.jni.SUNSONPwd.SUNSON_OpenCom(II)I
at com.easytoo.union.jni.SUNSONPwd.SUNSON_OpenCom(Native Method)
at com.easytoo.union.jni.SUNSONPwd.getPinPwd(SUNSONPwd.java:73)
at com.easytoo.union.impl.UnionPayDeviceImpl.getPinPwd(UnionPayDeviceImpl.java:210)
at com.easytoo.union.impl.UnionPayDeviceImpl.main(UnionPayDeviceImpl.java:215)