karthi kj
karthi kj

Reputation: 51

How to Extract jar from Zip file using java

File Structure

Zip file-> web-Inf -> *.jar 

How to extract the jar from that path?

I am using asm-tree classReader to extract methods from jar classes. If I mentioned the path correctly ,I can read the jar.

Upvotes: 1

Views: 528

Answers (1)

kutschkem
kutschkem

Reputation: 8163

The ZipFile class can be used for working with zip files. Specifically, the method entries() returns a List of all entries in the Zip file.

Upvotes: 1

Related Questions