SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-33
Java Compiler Command Line
Java Compiler Command Line
The SQLJ translator program automatically invokes the Java compiler (javac). The
Java compiler compiles the Java source file (.java file) into class files (.class files)
that contain bytecode. You can also invoke the Java compiler independently of the
SQLJ translator program by running the javac command.
Command-Line Syntax
To invoke the Java compiler, enter this command at an OSS prompt:
javac
is the Java compiler.
options
are javac option settings, which must be separated by spaces. For information,
see the NonStop Server for Java Tools Reference Pages.
file1.java [file2.java]...
are the Java source files to be compiled. Each file must be separated by a space.
Example—javac
This command compiles the Java source file named MyProg.java, specifies myjava
as the output directory, displays status messages during compilation, and generates all
debugging information:
javac -d myjava -verbose -g MyProg.java
javac [
options] file1.java [file2.java]...