Jar File

A jar (Java archive) file enables us to package Java files for archiving, easy distribution, and execution.

 

                                         Some JAR Files Command and Meaning:

 

Command

Function

Notes

Jar cf (filename with .jar extension) input files for example: jar cf az.jar Age.class

To create a jar file.

C: stands for create

F: stands file

Jar tf jar-file

To view the contents of the jar file.

T: stands table of content

F: stands for file (jar file content)

Jar xf jar-file

To extract the contents of a jar file.

X: stands for extraction

F: stands for file

Jar uf jar-file input files

To updating a jar file

U: stands for update

F: stands for file

 

Click here to read more