问题
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
来源:https://stackoverflow.com/questions/12157783/maven-put-dll-in-the-root-of-jar