title: Distributing java application
body: <p>I have recently developed some java applications that i want others to run on their machines.
  I did some research and now know that to distribute java code you need to create .jar file.
  Well i did that, but when I am distributed those file it runs on some computers but on others it return an error saying: "Main class could not found". </p>
  
  <ol>
  <li>Is there any problem with JRE version.</li>
  <li>How would a user know that on which version he/she should run the application.</li>
  <li>can i package the correct jre version with my app/jar file. how??</li>
  <li>Are jar files not compatible with other version of jre except in which they are compiled.</li>
  </ol>