These are some little tools I wrote to help my own Java development. They're released under the terms of the GNU GPL, except for Crypt, which I've been informed is based on code originally under a BSD license. ClassTool does what javap does, but it works using reflection rather than bytecode analysis (and thus doesn't do decompilation). It's useful to quickly view the API for a class. Printenv does the same thing as the UNIX utility, but for the Java environment (i.e. System properties). The Crypt class performs the Unix one-way hash crypt() function, as used in many implementations of /etc/passwd and ACLs. Base64 encodes and decodes 8-bit data to 6-bit printable data. It's used for HTTP's basic authentication protocol, as well as an email standard.

- Wes Biggs

ClassTool.java source
ClassTool.class bytecode
ClassToolUsage.txt usage doc

The usage file needs to go with ClassTool.class in your classpath.

Printenv.java source
Printenv.class bytecode
Printenv.out sample output

Crypt.java source
Crypt.class bytecode

Base64.java source
Base64.class bytecode