title: Spring-boot executable tomcat with DLL
body: <p>I have a spring-boot web application that I would like to package as self executable jar. I have configured the plugin as described into the <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-first-application.html#getting-started-first-application-executable-jar" rel="nofollow">reference</a> and <code>java -jar myapp.jar</code> shows that the app is trying to start.</p>
  
  <p>However, my app needs a DLL, so I have added a static block inside my servlet initializer :</p>
  
  <pre><code>public class DllUsageWebApp extends SpringBootServletInitializer {
      static {
          System.loadLibrary("TheLibrary.dll");
      }
      public static void main(String[] args) {
          SpringApplication.run(DllUsageWebApp .class, args);
      }
  
  }
  </code></pre>
  
  <p>But I receive the <code>UnsatisfiedLinkError</code> exception. </p>
  
  <p>How can I add a DLL to the embedded tomcat server ?</p>