10

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

WelcomeTo
  • 18,613
  • 51
  • 157
  • 276

2 Answers2

11

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.

Nicola Musatti
  • 17,263
  • 2
  • 45
  • 53
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
Community
  • 1
  • 1
Sumit Singh
  • 24,095
  • 8
  • 74
  • 100