I have created a swings application in JAVA I want this application to be launched by clicking on an icon.
Now any java program should work where ever we have the JRE and the JDK, so how can I create an icon so that when I click on the icon the GUI comes on screen in windows os?
Is creating a jar an answer to this...if yes then please explain how?if not then please tell me how it can be done...
Just to complement what my good buddy Stephan just said, in your executable JAR file, you'll have to indicate the Main-Class in your MANIFEST.MF file (the Main-Class is the fully-qualified name of the class that has the main method, that is, the class that launches your application).
You can find more about the MANIFEST.MF file here and more about the jar command here.