title: How to programmatically install a jar file to startup on all operating systems - Java
body: <p>So i have come across a problem with installing my java application to startup on all Operating Systems.</p>
  
  <p>Firstly I know this is possible on <strong>Windows</strong> by adding a new key to registry (I think).</p>
  
  <pre><code>I believe the command: 'reg add' works on windows.
  </code></pre>
  
  <p>I'm not 100% sure about <strong>Mac</strong> but i believe you can use a service wrapper?</p>
  
  <p>And for <strong>Linux</strong> I have no clue.</p>
  
  <p>Basically i want my application to be installed to startup when a user ticks a box, no matter which operating system it is run on. </p>
  
  <p>Just some clarification on these and if possible an example for each would really assist me.
  Any help with this is greatly appreciated. 
  Thanks.</p>