SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-10
SQLJ Translator Command Line
SQLJ Translator Command Line
This subsection describes the SQLJ translator command line, or the SQLJ command
line, and shows the command-line syntax, provides a summary of the SQLJ command-
line options, and groups the command-line options in categories and describes them in
more depth.
Command-Line Syntax
To process an SQLJ program, enter this command at an OSS prompt:
java
is the Java application launcher, which executes Java bytecode.
Java-options
are the Java application launching options available to Java applications on the
NonStop system. For information, see the NonStop Server for Java Tools
Reference Pages.
sqlj.tools.Sqlj
is the SQLJ translator program.
SQLJ-options
are the SQLJ option settings that you pass to the SQLJ translator program. These
options must be separated by spaces. For a list of the options, see Summary of
SQLJ Command-Line Options on page 5-11.
file-list
is:
file1.sqlj [file2.java]...
|
file1.ser [file2.jar]...
|
file1.m [file2.m]...
are the files to be processed. Each file must be separated by a space.
•
SQLJ source files (.sqlj) and Java source files (.java) can be used
together on a command line.
•
Profiles (.ser) and JAR files (.jar) can be used together on a command line.
If you pass a JAR file to the SQLJ translator program, the profiles in the JAR
file must be listed in the manifest file, and the JAR file must be in the class
java [Java-options] sqlj.tools.Sqlj [SQLJ-options] file-list
Note. It is faster to translate multiple source files simultaneously rather than translating
individual source files one at a time.