Viewing contents of a .jar file

Dani picture Dani · Nov 26, 2008 · Viewed 365.6k times · Source

What would be the easiest way to view classes, methods, properties, etc. inside a jar file? I'm looking for something equivalent to the very useful Lutz Roeder .NET Reflector - for Java

Answer

Tom Hawtin - tackline picture Tom Hawtin - tackline · Nov 26, 2008

Using the JDK, jar -tf will list the files in the jar. javap will give you more details from a particular class file.