title: Runnable Jar made in Eclipse, Doesn't work on pc's without JDK installed
body: <p>I've made a little snake game and exported it into a runnable JAR file through Eclipse.</p>
  
  <p>It works perfect in machines with JDK installed (with regards to the environment variables and all that.)</p>
  
  <p>But "normal" people don't have that installed, only the JRE that can be found here: <a href="http://java.com/en/download/index.jsp" rel="nofollow">http://java.com/en/download/index.jsp</a></p>
  
  <p>This is insufficient to execute the JAR apparently. I've tried numerous approaches:</p>
  
  <ul>
  <li>packeging libraries in Jar</li>
  <li>Extracting libraries in Jar</li>
  <li>Build with java 1.7</li>
  <li>building with java 1.8</li>
  <li>checked the build path to make sure the libraries is included.</li>
  </ul>
  
  <p>At best I get a "Java Exception occured" on the other PC (the one with JDK installed).
  I've then tried to run the JAR on my own machine through cmd with the command...</p>
  
  <pre><code>java -jar fileName.jar
  </code></pre>
  
  <p>...in the hope that I would get an error log, but nope, it just runs the JAR like there's no problem.</p>
  
  <p>Any ideas on how to make the JAR run on a machine with JRE installed?</p>
  
  <p>Thanks in advance</p>