最简单的JNI问题请教

Iforgot Iforgot 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
原码
/*
* Main.java
*
* Created on 2002年10月8日, 下午7:35
*/

/**
*
* @author zjw
*/
public final class Main {
static {
System.loadLibrary("hello1.dll");
}
public native void nativeHelloWorld();
/** Creates a new instance of Main */
public Main() {
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Main m=new Main();
m.nativeHelloWorld();
}
}

DLL名为hello1.dll有相应借口。

请问如何使的java时不要抛出UnsatisfiedLinkError异常,即我如何配置或传参数运行。
...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部
Iforgot
Java SE 62,621 成员 307,251 内容