Viewing Content of Jar in Java

jar tvf <myjarfile>.jar - Display Verbose output

0 Mon Mar 28 01:49:30 IST 2011 META-INF/
 217 Mon Mar 28 01:49:28 IST 2011 META-INF/MANIFEST.MF
   0 Mon Mar 28 01:49:30 IST 2011 datamapping/
   0 Mon Mar 28 01:49:30 IST 2011 datamapping/Properties/
  777 Mon Mar 28 01:49:28 IST 2011 datamapping/DataMapping$1.class
  770 Mon Mar 28 01:49:28 IST 2011 datamapping/DataMapping$2.class
  553 Mon Mar 28 01:49:28 IST 2011 datamapping/DataMapping$3.class
16453 Mon Mar 28 01:49:28 IST 2011 datamapping/DataMapping.class
  553 Mon Mar 28 01:49:30 IST 2011 datamapping/DisplayData$1.class
 2331 Mon Mar 28 01:49:30 IST 2011 datamapping/DisplayData.class
 4938 Mon Mar 28 01:49:30 IST 2011 datamapping/Properties/Envproperties.properties

jar tf <myjarfile>.jar - This command displays the contents of the JAR file to stdout:


META-INF/
META-INF/MANIFEST.MF
datamapping/
datamapping/Properties/
datamapping/DataMapping$1.class
datamapping/DataMapping$2.class
datamapping/DataMapping$3.class
datamapping/DataMapping.class
datamapping/DisplayData$1.class
datamapping/DisplayData.class
datamapping/Properties/Envproperties.properties


No comments:

Post a Comment