- [sourceforge project page] -   - [Download] -

JFind: Java Class Finder

JFind can find a Java class file anywhere on the filesystem, even if it is hidden many levels deep in a jar within an ear within a zip!

 

> java -jar jfind.jar
JFind - Find Java classes - v1.0.0
Usage:
java -jar JFind.jar <classname> [<fromDir>]
classname is case-insensitive in the form [package]<name>[.class]
where the package separator character can be any of .\/

 

The following is an example of searching class "hashtable" in J2SDKEE 1.3.1:

> java -jar jfind.jar hashtable C:\java\j2sdkee1.3.1

.....................................................ejjww..
...j...jjj..jjj
org/apache/crimson/parser/SimpleHashtable.class in C:\java\j2sdkee1.3.1\lib\j2ee.jar

j
com/sun/enterprise/tools/deployment/ui/utils/UIProject$ArchiveHashtable.class in C:\java\j2sdkee1.3.1\lib\j2eetools.jar
com/sun/enterprise/tools/deployment/ui/utils/UIProject$ProjectHashtable.class in C:\java\j2sdkee1.3.1\lib\j2eetools.jar

j...........................................................
.jj.....

 

Characters printed on screen are:

. = directory
j = jar
w = war
e = ear
z = zip

 

In the following example JFind will look for a class named "com.ibm.rmi.corba.ORBSingleton" anywhere in the 800 Mbytes of Java material I have on my HD in about 10 seconds:

> java -jar jfind.jar com.ibm.rmi.corba.ORBSingleton c:\java

............................................................
.......................z.....j..jjjjjjjjjjjjjjjjjjjjjjjjjjjj
jjjjj.j.....................................................
.......................j....................................
............jj......................................jj......
.............................z..jjjjjjj.j...................
.j.j........................................................
............................................................
............................................................
............................................................
............................................................
...........................z..................jz......jz....
jz....jz..................................j.................
................................zz..........................
....................................zzzz....................
...................z........................................
............................jj....j..jjjj...jj..jjjj.jjj....
...........jjjz.............................................
.........ejjww.....j...jjj..jjjjj...........................
.................................jj........jjj..............
.......................jj...................................
............................................................
.........j..................................................
............................................................
............................................................
...................jjjjjjjjjjjj.wjjjjjjjjjjjjjjjjjjjjjjjj...
...jjjjjjjjjjjj.......................................jjjjjj
jjjjjj..................jjjjjjjjjjjj......wjjjjjjjjjjjjjjjjj
jjjjjjj.....................................................
...............................jjjjjjjjjj...................
............................................................
............................................................
.................................wjjjjjjjjjjjjjjjjjjwjjjjjjj
jjjjjjjjjjjwjjjjjjjjjjjjjjjjjjwjjjjjjjjjjjjjjjjjjwjjjjjjjjjj
jjjjjjjjwjjjjjjjjjjjjjjjjjjwjjjjjjjjjjjjjjjjjjwjjjjjjjjjjjjj
jjjjj....jjjjjjj.j.........jjjjjjjjjj.jj....................
..............................jj..jjjjj..........jjjjjj...jj
jj.........................jjjjjjjjjjjj.................jjj.
.....jjjjj.jjjjj..j..j.................j.j.j....jjjjjj.jjjjj
j........jj.j.........zz..jjjj...jj.jjjjjzjjjjjjjjjjj.......
.jjjjjjjjjjjjjjjjjjjjjjjj................jj....j...jj.......
...........z................................................
.............................jj.............................
............................................................
............................................................
.........................................j.j.jjjjjj
com/ibm/rmi/corba/ORBSingleton.class in c:\java\WebSphere\AppClient\java\jre\lib\ext\ibmorb.jar

jjjjjjjjjj.j..j.z.z.jjjj
com/ibm/rmi/corba/ORBSingleton.class in c:\java\WebSphere\AppClient\java\jre\lib\server.jar

j.jjjj..jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj....................
............................................................
............................................................
..........................................................ej
jjjjjjejjjjjj.ejjjjjj.jjjejjjjjj.jjj........................
............................................................
............................................................
..............................jjjjjjjjjjj...................
................j.j.jjjjjj
com/ibm/rmi/corba/ORBSingleton.class in c:\java\WebSphere\AppClient\_uninst\_jvm\jre\lib\ext\ibmorb.jar

jjjjjjjjj.j..j.z.z.jjjj
com/ibm/rmi/corba/ORBSingleton.class in c:\java\WebSphere\AppClient\_uninst\_jvm\jre\lib\server.jar

j.jjjj.........j.j.jjjjjj
com/ibm/rmi/corba/ORBSingleton.class in c:\java\WebSphere\SmallAppClient\java\jre\lib\ext\ibmorb.jar

jjjjjjjjjj.j..j.z.z.jjjj
com/ibm/rmi/corba/ORBSingleton.class in c:\java\WebSphere\SmallAppClient\java\jre\lib\server.jar

j.jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj..............jj..........
.....................j................................j.....
........................j...................................
............................................................
............................................................
............................................................
.....................................................jjjjjjj
jjjjjjjjjjjjjj.................................j............
.................................................j..........
............................................................
........................................j...................
............................................................
...................................jjjjjjjjjjjjjjjjjjjjjjjjj
jjjjjjjjjj....jjjjjj........................................
.....................j

JFind is looking for developers. Mail xtian if you want to help!



SourceForge.net Logo