Running Jar file with external properties
<p>I have jar file that I want to run along with specific properties file. I am running following command to execute that jar</p>

<pre><code>java –jar –DApp.config.file=local.properties App.jar
</code></pre>

<p>With this command I am getting following error </p>

<pre><code>Could not load properties from class path resource [local.properties]: class path resource [local.properties] cannot be opened because it does not exist
</code></pre>

<p>Based on what I read so far if you are passing -jar then you don't have to worry about $CLASSPATH. Am I missing something here ? </p>

<p>PS - local.properties and jar files are in same directory.</p>