Thursday, December 13, 2007

Making an Executable Jar file

Steps to make a jar file executable jar file (i.e open on double click): Tips to develop an executable jar for a simple 1>Create a text file named and edit it with Manifest-Version: 1.0 Main-Class: Hello *It is important to end the above file with a blank line i.e after the Main-Class line two enters key presses. 2>Then create the archive by typing jar cvmf Hello.jar Hello.class or jar cmf Hello.jar * 3>Run it by typing the command below or simply double clicking the Jar file (For Swing/AWT based applications) java -jar Hello.jar

No comments:

Post a Comment