Java javac tool

The javac tool compiles Java™ programs. It is compatible with the javac tool that is supplied by Sun Microsystems, Inc. with one exception.

-classpath
Does not override the default classpath. Instead, it is appended to the system default classpath. The -classpath option does override the CLASSPATH environment variable.

The javac tool is available using the Qshell Interpreter.

If you have JDK 1.1.x installed on your iSeries™ server as your default, but you need to run the java command from version 1.2 or higher, enter this command:

javac -djava.version=1.2 <my_dir> MyProgram.java

For more information about the javac tool, see the javac tool by Sun Microsystems, Inc.