Runnable jar file generated by Eclipse wont execute?
I generated a very simple runnable jar file using Eclipse's "Export-->Java-->Runnable Jar File" function. My HelloWorld class looks like this: import javax.swing.JFrame; public class HWorld extends JFrame { public static void main(String[] args) { new HWorld(); } public HWorld() { this.setSize(200, 100); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setTitle("Hello World!"); this.setVisible(true); } } Now, after generating the .jar file , it runs fine from the command line using the command "java -jar HWorld.jar" But, when I try to execute the jar on its own (which supposedly