Chapter 9. Audio Effects


LoadersTests as a JAR File

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.jar

All 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



Killer Game Programming in Java
Killer Game Programming in Java
ISBN: 0596007302
EAN: 2147483647
Year: 2006
Pages: 340

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net