• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dependency Finder

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic