Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to dump contents of a Java library to the console?

Is there a tool for dumping the contents of a library or JAR file to the console?

I'm looking for the Java counterpart of DUMPBIN /SYMBOLS, which works on Windows native-mode libaries. With C# and the rest of .NET, there are a bunch of visual tools like .NET Reflector and the object browsers built into Visual Studio. All-in-all, I prefer command-line tools, but I will be grateful anything that works :)

(I'm just getting started with Java and Scala on Windows.)

like image 429
Reb.Cabin Avatar asked Nov 29 '22 16:11

Reb.Cabin


1 Answers

The command you're looking for is:

jar tf <jarfilename>

like image 134
Marvo Avatar answered Dec 04 '22 14:12

Marvo