classfind

Allows mapping between Java class names, packages, and their location in the
classpath

Uses include:

Download
Version 1.1 - release 10-Apr-2004

classfind is released under the GPL license. Right-click and choose Save As if your browser doesn't offer you the option.

classfind.jar - the .jar file to use

classfind.tar.gz - the source code and scripts

Usage
classfind is designed to be invoked from editors, shell completions etc. Consequently you'll want to wrap it in a script, such as:

#!/bin/sh
java -jar classfind.jar $*
classfind operates by analysing the environment's CLASSPATH, and building a mapping of classes vs. their packages and their location in the CLASSPATH. This mapping is stored in a file called .classfind, located (unless specified otherwise) in your home directory.

classfind options:

eg.
example% classfind -c Document
/usr/java/j2sdk1.4.0/jre/lib/rt.jar -> org.w3c.dom.Document
/usr/java/j2sdk1.4.0/jre/lib/rt.jar -> javax.swing.text.Document
  
highlights that you can access a Java Document object from two packages, both from within the same .jar file.

Other uses for classfind

Contact
classfind is written and maintained by OOPS Consultancy Ltd. Enquiries to classfind@oopsconsultancy.com.

Hosted on

SourceForge Logo

Copyright © 1997-2005 OOPS Consultancy Ltd