用JNI调用VC中的动态库,动态库已编译通过,但是运行时出现下面的错误:
java.lang.UnsatisfiedLinkError: F:\Swingset2\ReceiveFile.dll: ???t???(DLL)??????????°??
注:我用的编译工具是:JBuilder 2005
JAVA源程序如下:
public class Loaddll {
static {
System.loadLibrary("ReceiveFile");
}
public native static void ReceiveFile();
//public native static void set(int i);
public static void main(String[] args) {
Loaddll test = new Loaddll();
test.ReceiveFile();
}
public Loaddll() {
}
}
请问为什么会出现这个错误?
java.lang.UnsatisfiedLinkError: F:\Swingset2\ReceiveFile.dll: ???t???(DLL)??????????°??
注:我用的编译工具是:JBuilder 2005
JAVA源程序如下:
public class Loaddll {
static {
System.loadLibrary("ReceiveFile");
}
public native static void ReceiveFile();
//public native static void set(int i);
public static void main(String[] args) {
Loaddll test = new Loaddll();
test.ReceiveFile();
}
public Loaddll() {
}
}
请问为什么会出现这个错误?
解决方案 »
- javac中-sourcepath作用的总结问题!
- Java新手高分跪求一题
- 请指教下java信息国际化怎么实现
- 求:数字签名(RSA算法)的Java实现
- 高分求救,SimpleDateFormat.parse()方法出错?
- 看一下这个程序
- (JBuilder)为什么在Applet上放上AWT中的Choice时,在inspector的Events中看不到Choice的任何事件?
- 如何在内存中吧图片一副画到另一副图片上。
- 如何在UNIX或LINUX上编译JAVA文件,即如何编译为可执行文件(APPLICATION)!
- where can I download the java web server full version?
- 为什么我在contentpane里面加JButton的时候要最大化后才能看见?
- Property.copyBean()方法和Property.cloneBean()方法,看不到深浅拷贝的效果
dll的.h文件,是不是跟java的完整定义也是一致