郁闷了!Jnative调用dll错误,Not found the kernel library...
代码如下:
String libpath = "F:\\dll\\test.dll";
System.load(libpath);
JNative n = null;
try {
n = new JNative("Test.dll", "test1");
n.setRetVal(Type.VOID);
n.setParameter(0,Type.INT,"0");
n.setParameter(1,Type.INT,"0");
n.setParameter(2,Type.STRING,"111");
n.setParameter(3,Type.STRING,"222");
n.invoke();
}catch .....
Test.dll是用delphi写的。
当运行到n.invoke的时候就弹出系统错误提示,内容为:
Not found the kernel library or the kernel library is invalid or the kernel library of this edition does not support DLL!
---
网上google,都说是因为系统安装了什么软件什么的,试了不起作用。分别在2台2003上运行,都是相同的错误!