Jar CF Jarfilename Inputfiles: JAR (Java Archieve File) FILES: .Class
Jar CF Jarfilename Inputfiles: JAR (Java Archieve File) FILES: .Class
jar tf jarfilename
jar tf pack.jar
Now, the content of pack.jar are displayed as
META-INF/
META-INF/MANIFEST.MF
pack/
pack/Addition.class
The first two entries represent that there is a manifest
file created and added to pack.jar file.
The third entry represents the sub directory with the name
pack and the last represent the file names in the directory
pack.
Manifest File:
Each JAR file contains a manifest file that
describe the features of the archive.
Each JAR file have a manifest file by default.
Default manifest file is named as MANIFEST.MF and
is present in the META-INF subdirectory of archive.
Although the default manifest file contains just
two entries, but complex manifest files can have
way more.
jar xf filename