Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I extract a single class plus all its dependencies from a library?

Tags:

java

I got a big Java library but only need a small portion of it. How would I extract the main class and all of its dependencies? An automated solution would be preferred, but I can also live with something that generates a list of files I need to extract (I don't want to write that something myself ;-)).

This is similar to Tool or plugin to extract class and all of its dependencies from VS project - I just need it for Java (IDE in use is Eclipse).

like image 847
Magnesium_chlorid Avatar asked Mar 23 '11 16:03

Magnesium_chlorid


1 Answers

There is a tool called autojar. It works.

like image 165
Ingo Avatar answered Oct 13 '22 00:10

Ingo