Maven. Put .DLL in the root of JAR

2020-07-06 03:37发布

问题:

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


标签: java maven jar