Categories: Tutorials

Use the contents of a jar file.

How to view the contents of a jar file.
Command

// From the cmd line
jar -tvf fileName.jar

Example Output

C:\BrowserGUI\dist>jar -tvf BrowserGUI.jar
     0 Sat Nov 26 21:46:28 PST 2011 META-INF/
   106 Sat Nov 26 21:46:26 PST 2011 META-INF/MANIFEST.MF
 39313 Sat Nov 26 21:46:26 PST 2011 GUIAboutTab.class
 39952 Sat Nov 26 21:46:26 PST 2011 GUIFrame.class
 45354 Sat Nov 26 21:46:26 PST 2011 GUITabbedPane.class
  5244 Sat Nov 26 21:46:26 PST 2011 GUImain.class
   691 Sat Nov 26 21:46:26 PST 2011 NewJFrame$1.class
   509 Sat Nov 26 21:46:26 PST 2011 NewJFrame$2.class
 15458 Sat Nov 26 21:46:26 PST 2011 NewJFrame.class

Check out the Java Package Tutorial for more infomation.

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

Share
Published by
Larry Battle
Tags: howtojava

Recent Posts

What really is Data Science? Told by a Data Scientist

What REALLY is Data Science? Told by a Data Scientist - By Joma Tech

7 years ago

Video: How Water Towers Work

How Water Towers Work - Practical Engineering

7 years ago

Dev Tip: Simple tips to improve code reviews

Writing perfect code is a challenging process. That's where code reviews come in to help…

7 years ago

Video: How AI will change the 3d industry

"The Next Leap: How A.I. will change the 3D industry - Andrew Price - Blender"

7 years ago

Best Software Presentation for 2018

"Captain Disillusion: World's Greatest Blenderer - Live at the Blender Conference 2018 - CaptainDisillusion"

7 years ago

Dev Video: A Few Linux Shell Tips

My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency) - By tutoriaLinux > What's…

7 years ago