title: Spring Boot Executable Jar with Classpath
body: <p>I am building a software system to interact with an enterprise software system, using Spring Boot. My system depends on some jars and *.ini files from that enterprise system, so I cannot pack all dependencies in Maven. I would like to be able to run Spring Boot as Executable Jar with embedded Tomcat. I would also like to be able to set the classpath via the command line. So something like:</p>
  <pre><code>java -classpath /home/sleeper/thirdparty/lib -jar MyApp.jar
  </code></pre>
  <p>However, -classpath and -jar cannot co-exist. I have tried &quot;-Dloader.path&quot;. It was able to load all the jar files under the folder, but not other things, like *.ini files in the folder.</p>
  <p>So is there a way we can make -classpath to work with an Spring executable jar with embedded Tomcat?</p>