title: Specifying JVM arguments when calling a jar file?
body: <p>I want to specify some JVM arguments when calling a jar file like so:</p>
  
  <pre><code>java -jar filename.jar
  </code></pre>
  
  <p>I assumed I did it like so: </p>
  
  <pre><code>java -Xms256m -Xmx512m -Djava.awt.headless=true jar filename.jar
  </code></pre>
  
  <p>But this doesn't seem to work. What am I doing wrong?</p>