title: Reading properties file from JAR directory
body: <p>I’m creating an executable JAR that will read in a set of properties at runtime from a file. The directory structure will be something like:</p>
  
  <pre><code>/some/dirs/executable.jar
  /some/dirs/executable.properties
  </code></pre>
  
  <p>Is there a way of setting the property loader class in the executable.jar file to load the properties from the directory that the jar is in, rather than hard-coding the directory. </p>
  
  <p>I don't want to put the properties in the jar itself as the properties file needs to be configurable.</p>