G
grays
Unregistered / Unconfirmed
GUEST, unregistred user!
很简单的一个dll
project test
....
proceduredo
test;export
begin
end;
exports
dotest
....
java class如下
--------------
package wxy;
classdo
dll{
public static native voiddo
test ();
static {
System.loadLibrary("test");
}
}
public class My {
public My(){
}
public static void main(String [] argv) {
do
dll.dotest();
}
}
为什么报如下错误??
wxy.My
java.lang.UnsatisfiedLinkError:do
test
at wxy.dodll.dotest(Native Method)
at wxy.My.main(My.java:26)
Exception in thread "main" Process terminated with exit code 1
dll是找到了,可是用c++builder写的dll调用好像没有问题艾?
晕死,救命!
project test
....
proceduredo
test;export
begin
end;
exports
dotest
....
java class如下
--------------
package wxy;
classdo
dll{
public static native voiddo
test ();
static {
System.loadLibrary("test");
}
}
public class My {
public My(){
}
public static void main(String [] argv) {
do
dll.dotest();
}
}
为什么报如下错误??
wxy.My
java.lang.UnsatisfiedLinkError:do
test
at wxy.dodll.dotest(Native Method)
at wxy.My.main(My.java:26)
Exception in thread "main" Process terminated with exit code 1
dll是找到了,可是用c++builder写的dll调用好像没有问题艾?
晕死,救命!