You can use the JAR command to package a Java program.
JAR Command format:
jar {c T x u f}[v m 0 m I] [jar-file] files ...
Parameter meaning:
C: Create a JAR Package
T: Displays a list of the contents of the JAR package
X: Unzip the jar package
U: Add file to Jar package
F: Specify the file name of the jar package
V: Detailed production report, on-screen output
0: When generating jar packages, do not compress
I: Create an index file for the specified jar package
M: Contains inventory information from the specified manifest file
M: Do not create a manifest file for the entry
Example: 1 Creating a jar Package
Jar CVF Hello.jar Helloworld.class
2 Show Jar Package
Jar TVF Hello.jar
3 Unpacking the JAR package
Jar XVF Hello.jar
4 adding new content to existing jar packages
Jar UF Hello.jar Helloworld.java
Daily one Java----------jar command