Unable to load library ‘main‘: ÕҲ»µ½ָ¶
程序员文章站
2022-03-19 22:13:32
...
# 情境
今天在使用JNA,通过java调用C程序,遇到的问题
# 原因
主要就是,你在打包的时候,虽然已经把xxx.h的依赖包打上了
但是,在调用运行的时候,并没有加入相关的依赖
# 解决方法
将C语言源代码中通过#include引入的依赖,也全都拷贝到和dll文件同级目录
上一篇: 该怎么拒绝
推荐阅读
-
Unable to load library 'HCNetSDK': ÕҲ»µ½ָ¶¨海康威视java开发demo
-
zookeeper无法启动"Unable to load database on disk
-
Can't debug c++ project because unable to static library start program *.lib
-
Unable to load script from assets‘index.android.bundle‘.Make sure your bundle is packaged correctly
-
Jib构建镜像的问题分析(Could not find or load main class ${start-class})
-
解决:Cannot load ocl.dll library(error code 126). The ocil.dll library may be missing from the system
-
Could not load dynamic library cudart64_100.dll
-
Hadoop启动警告:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... usi
-
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your......
-
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-