title: Force System Properties in a JAR
body: <p>I currently had a problem similar to this previous question:</p>
  
  <p><a href="https://stackoverflow.com/questions/3602590/why-would-our-java-app-not-display-windows-on-secondary-monitor">Why would our Java app not display windows on secondary monitor?</a></p>
  
  <p>The answer was to include:</p>
  
  <ul>
  <li>Dsun.java2d.d3d=false</li>
  <li>Dsun.java2d.noddraw=true</li>
  </ul>
  
  <p>So I created my shortcut to launch the application as such:</p>
  
  <pre><code>C:\WINDOWS\system32\javaw.exe -Dsun.java2d.d3d=false  -Dsun.java2d.noddraw=true -jar &lt;file name&gt;
  </code></pre>
  
  <p>Is there anyway to force that application to use that in code and not have to use parameters?</p>