Source and Classfile Tools

These tools include the following:

Tool Description
java Java runtime
javac the Java programming language compiler
javadoc to generate API documentation from javadoc comments
javah to generate C header files for native methods
javap disassembler
apt deprecated: use new features in javac instead

java

The "java" command is simply an invocation of the launcher to start a new JVM.

javac

The compiler has its own pages, here.

javadoc

javadoc is a tool for generating API documentation from doc comments in source code. It uses the following packages:

Package Description
com.sun.tools.javadoc Main javadoc tool
com.sun.tools.doclets Implementations of standard doclets
com.sun.javadoc The API for doclets

javah

javah produces C header and C source files from a Java class. It uses the following packages:

Package Description
com.sun.tools.javah Main javah tool

Internally, it is organized as a custom javadoc doclet that is invoked by running javadoc directly from the javah main program.

javap

javap is a disassembler for class files. It uses the following packages:

Package Description
sun.tools.javap Main javap tool

Community