i have created a desktop application in Java Swing... but everytime i need to compile and run the application to see how my program is doing... i want to know what should i do so that by double clicking on the icon on the desktop i will be able to rum the program directly without compiling again and again
Make sure you know where you are saving the file to.
Locate file and double click
Note, if you DO NOT have any graphics in your .Jar you might not see any effects from double clicking your .Jar. So, let's say you make a text role playing game and .jar it up (JARing is like making a .EXE). If you did not add any graphics then nothing will happen when you double click your .jar.