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..
- how to make a jar file that include dll files
- How to add native library to “java.library.path” with Eclipse launch (instead of overriding it)
- native_loader