Smile — Java Runnable Jar Demo

View/download Mona.gif

Download Smile.jar


How to create a Jar file:

  1. Compile your .java files to create the .class files:
    C:\Temp> javac Smile.java
  2. Create the Jar file, with all .class and media files:
    C:\Temp> jar -cfe Smile.jar Smile Smile*.class Mona.gif
  3. Run the Jar file by double-clicking on it, or from the command line:
    C:\Temp> java -jar Smile.jar