title: Java VM argument type -D and --
body: <p>This might be a trivial question I am asking, but I did not get this required info in any docs, may be I am overlooking. Currently I am using OpenJDK 8.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Apologies, specific use case, I am running Spring boot jar.</p>
  
  <p>While passing JVM arguments we options like</p>
  
  <pre><code>-Dspring.profiles.active=local
  </code></pre>
  
  <p>But lately I have found that instead of <code>-D</code> many places I found <code>--</code></p>
  
  <pre><code>--spring.profiles.active=local
  </code></pre>
  
  <p>It would be great to know about both and difference and where to use them.</p>