- Build the tool.
- Run it with the target directory as an argument:
java -jar jar-indexer.jar <path-to-directory-with-jars>
The tool will scan all JAR files in the specified directory.
- Output:
After processing, the tool generates an
classesIndex.txtfile containing all found classes, sorted alphabetically, andpackagesIndex.txtfile containing all found packages, sorted alphabetically.