This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Dependency Finder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Dependency Finder" Watch "Dependency Finder" New topic
Author

Dependency Finder

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Hi,

I have one applet which uses 2 apache-commons jars. The 2 jars in turn use 2 more apache-commons jars.

Since those 4 apache-commons jar are reaching 1mb, and I really dont need all classes in them (at least I think), I wish to know all classes in those 4 apache-commons jars that my applet needs.

This is so that I can extract those classes only, for inclusion to my applet jar.

I will appreciate any comment.

I looked at the open source Dependency Finder, but finding it hard to use.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

It's unlikely that any automated process can find all the classes you'll need in a set of jars as complex as the Apache commons ones. Automated cross-referencers can scan for static references, but some of those jars are heavy users of introspection, interfaces, and other dynamic run-time references. For example, a fundamental attribute of the beanutils is its ability to access arbitrary properties of any object presented to it.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Try using JBoss Tattletale (http://www.jboss.org/tattletale). It should do what you are looking for. (Of course, it does have the limitations that Tim mentions...)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dependency Finder
 
Similar Threads
The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved
HIbernate-UnsupportedoperationException
Archive problem.
Jars within Jar
Signed Applets: automation issue.