简体   繁体   English

Jar Runnable与外部库-Eclipse

[英]Jar Runnable with external library - Eclipse

I have created a small program using Java and openCV. 我已经使用Java和openCV创建了一个小程序。 Now I want to export this to Runnable Jar. 现在,我要将其导出到Runnable Jar。 Is there a way for me to make Runnable Jar with Java and openCV library using Eclipse 有没有办法让我使用Eclipse使用Java和openCV库制作Runnable Jar

In order to include native libraries in an executable java program you need to specify it at the moment of executing a jar. 为了在可执行的Java程序中包含本机库,您需要在执行jar时指定它。 For example: 例如:

java -Djava.library.path="<path_to_opencv>/opencv/build/lib" -jar FaceDetection.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM