title: Executable Jars running very slowly
body: <p>I've done several projects and packaged them into jar files, but I've noticed that my jar files run much more slowly than in my IDE.</p>
  
  <p>I use Eclipse to compile and run my programs. In Eclipse, I have everything working. When I package my project as a runnable Jar and execute it by double-clicking, everything still works. But when I have animation, the program runs <i>extremely</i> slowly. Instead of 30 frames per second in Eclipse, I now get about 2 frames per second. The animation is very laggy.</p>
  
  <p>Interesting thing is, when I run the same Jar from the command prompt (<code>java -jar MyCode.jar</code>), the lag disappears and my program works as normal.</p>
  
  <p>I currently have no idea what's causing this problem. My computer is running Windows Vista. I'm using the latest version of JRE and JDK. My program contains an animation, nothing fancy.</p>
  
  <p>Thanx</p>
  
  <p><b>Solution:</b>
  There were several different versions of Java on my computer and an incorrect version was used.</p>