title: load config file (project.properties) at runtime via command prompt in java
body: <p>I would like to load properties file via command prompt in java.</p>
  
  <p>Properties file name: project.properties</p>
  
  <pre><code>java -classpath .;test.jar; com.project.Main
  </code></pre>
  
  <p>What 'll be the command if I'll load the properties files via command prompt.</p>
  
  <p>Thank in advance.</p>
  
  <p>I have executed the below mentioned command on command prompt but not get any output.</p>
  
  <p>java -classpath .;test.jar; -DPROP_FILE="C:\Program Files\DemoApp\config\project.properties" com.project.Main</p>