Java – Viewing contents of a .jar file

jarjavaviewer

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

Best Answer

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