title: How to pass path from file to system property of my java class
body: <p>I have a configuration file and I want to read a path to a file from config file and pass it to system properties of my java class. That's what I want to get from the file:</p>
  
  <pre><code># path configuration
  MyfilePATH="$projectPath/file name"
  </code></pre>
  
  <p>and that's what I have in my java class: </p>
  
  <pre><code>private static final String FILE_PATH = System.getProperty("FILE_PATH","DEFAULT_PATH");
  </code></pre>
  
  <p>and I uset the FILE_PATH in my java class. but since I am quite new to java I do not know how to pass the value from config file to my java class.</p>
  
  <p>Any help?
  Thanks</p>