Maven. Put .DLL in the root of JAR

坚强是说给别人听的谎言 提交于 2020-01-22 18:57:23

问题


How I can include native .dll file in root of JAR using Maven?


回答1:


If you already have your .dll file just store it in your project's src/main/resources directory and Maven will put it in the target jar's root directory.




回答2:


You can see these links may it helps..

  1. how to make a jar file that include dll files
  2. How to add native library to “java.library.path” with Eclipse launch (instead of overriding it)
  3. native_loader


来源:https://stackoverflow.com/questions/12157783/maven-put-dll-in-the-root-of-jar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!