# Compress java files and compress them into jar packages
1. Open (directory of the CD Java file)
2. Configuration
Set Path = directory of JDK 1.5.0 _ 05/bin under drive C-your own JDK installation directory
Set classpath =. -- current path
3. Packaging:
Jar cvf tt. Jar./-- (./indicates all files in the current file)
4. The generated jar cannot be run. Release it,
Generate a folder named META-INF, open the append main-class: package name. Class Name -- (: must have spaces after)
5. Package again
Jar cvfm package name. Jar./meta-INF/manifest. MF./-- (there must be a space after MF ,./)
6. You can pull it !! Pai_^
# Compress java files and compress them into war packages
1. Open the folder to be packaged (CD directory)
2. Configuration
Set Path = directory of JDK 1.5.0 _ 05/bin under drive C-your own JDK installation directory
Set classpath =. Current path
3. Jar cvf tt. War./-- (./indicates all files in the current file)