title: How to make a distributable batch file of my jar
body: <p>Hi I have created a java application and created a jar file. Then I created a batch file eg-> <code>startup.bat</code>   The contents of this file is <code>java -jar MyApp.jar</code></p>
  
  <p>Now if I double click the batch file then my java application works because both the jar file and batch file belong to same directory. Now I copied the batch file to desktop and run then My application did not run.</p>
  
  <p>Also I want My batch file automatically set the class path.</p>
  
  <p>How to create a batch file with all the above feature</p>
  
  <p>Thanks
  Sunil Kumar Sahoo</p>