May 2005
Intermediate to advanced
998 pages
26h
English
It's straightforward to package the LoadersTests code, its images, and sounds into a JAR file:
jar cvmf mainClass.txt LoadersTests.jar *.class Sounds Images
jar i LoadersTests.jarAll the class files and everything in the Sounds/ and Images/ subdirectories are packed together.
The i argument adds indexing information to the JAR file, which will accelerate its execution if it contains many files.
mainClass.txt contains a single line:
Main-Class: LoadersTests
The JAR file can be started by double-clicking its icon or from the command line:
java -jar LoadersTests.jar