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
相关产品推荐
相关产品推荐

