You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

JNI原生库加载失败,提示找不到指定过程问题求助

JNI原生库加载失败,提示找不到指定过程问题求助

各位好,我目前正在为自己的Minecraft模组开发一个通用基础库,结果在JNI这块卡壳了。我本身刚接触JNI和C++没多久,大概率是自己哪里操作错了,但翻了好几个小时的资料都没找到解决办法,只好来求助大家了。

不管我是直接通过绝对路径加载原生库,还是把库从jar包里面复制到临时目录再加载,都会弹出下面这个错误:

java.lang.UnsatisfiedLinkError: E:\IdeaProjects\hmmm library\nativeLibSrc\hmmm.dll: The specified procedure could not be found
    at jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
    at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388) ~[?:?]
    at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232) ~[?:?]
    at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174) ~[?:?]
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394) ~[?:?]
    at java.lang.Runtime.load0(Runtime.java:...

有没有大佬能帮我分析下可能的原因,或者给点排查的方向呀?

备注:内容来源于stack exchange,提问作者Progames723

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 12:08:02