Jxref is a project mainly written in Java, it's free.
Creates a tree based on a file of words and prints line numbers of the occurrences of each word.
By Stewart Bracken
This is a java reference tool for organizing words from a text file into lexographic order using a binary search tree and print.
USAGE jxref [-df] [filename...]
OPTIONS -f Flattens cases into lowercase only -d Prints in debug format-- ie. in tree view.