title: How do I set java jvm properties from run time
body: <p>I have tried the following code but java still says it cannot find the values. It only works if I set them in JVM before I even run my code. I just want to load them using a properties file.
  In my case file is being loaded put java properties is not being populated.</p>
  
  <pre><code>Properties prop = new Properties();
      InputStream in = MyClass.class.getResourceAsStream("/vars.options");
      prop.load(in);
      in.close();
      System.setProperties(prop);
  </code></pre>