title: Apache Commons Daemon specify classpath
body: <p>I try to deploy a program as windows service with apache commons daemon. i have everything set up fine beside the classpath. </p>
  
  <pre><code>Classpath=C:\test\test-service\lib\*
  </code></pre>
  
  <p>specifies where the service itself lies, but the service needs some configuration files to run and these are under </p>
  
  <pre><code>Classpath=C:\test\test-service\conf\*
  </code></pre>
  
  <p>now i struggle to get it to work so that the program uses <code>C:\test\test-service\*</code> as classpath and not just one of the both specified above. sadly <code>C:\test\test-service\*</code> does not work and throws a <code>ClassDefNotFoundException</code> for the starter class. that error is solved by <code>C:\test\test-service\lib\*</code> but then i get the error that my config files can't be read. therefore i thought, why not also add the config path to the classpath like this: </p>
  
  <pre><code>Classpath=C:\test\test-service\lib\*;C:\test\test-service\conf\*
  </code></pre>
  
  <p>but this still throws the <code>FileNotFoundException</code>. does anyone has a solution to this?</p>