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