opencv的动态库通过无法通过相对路径访问 #7

Closed
opened 2026-02-04 10:19:15 +08:00 by yangjianbing · 2 comments
Collaborator

通过启动程序设定java.library.path为opencv动态库所在的路径,但是系统无法启动

通过启动程序设定java.library.path为opencv动态库所在的路径,但是系统无法启动
yangjianbing self-assigned this 2026-02-04 10:19:15 +08:00
yangjianbing added reference main 2026-02-04 12:04:44 +08:00
Author
Collaborator

8e55124158 commit
研发测试完毕

8e55124158 commit 研发测试完毕
Author
Collaborator

程序中设定的java.library.path对于在启动阶段已经读取过java.library.path的classloader,是不生效的。
为避免通过java启动指令-Dxxx进行路径设定,修改代码设定环境变量,然后通过system.load读取绝对路径的动态库文件,
不再采用system.loadlibrary。

程序中设定的java.library.path对于在启动阶段已经读取过java.library.path的classloader,是不生效的。 为避免通过java启动指令-Dxxx进行路径设定,修改代码设定环境变量,然后通过system.load读取绝对路径的动态库文件, 不再采用system.loadlibrary。
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: libingkun/skyeyesystem#7
No description provided.