郁闷了!Jnative调用dll错误,Not found the kernel library...

luocolor1 2009-07-29 02:04:49
代码如下:
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上运行,都是相同的错误!
...全文
432 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
紫炎圣骑 2009-08-05
  • 打赏
  • 举报
回复
帮顶吧
  • 打赏
  • 举报
回复
没有找到内核库。

引入对么?

62,615

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧