SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-20
Options for Reporting and Line Mapping
-props
The -props option specifies a properties file that contains option settings to be read
by the SQLJ translator program. The properties file provides an alternate way of
specifying option settings on the SQLJ command line.
This example specifies a properties file named myprops.properties:
java sqlj.tools.Sqlj -props=myprops.properties
For more information, see Properties File on page 5-7.
-version
The -version option displays the product release number of the SQLJ product. You
can specify the alias -v instead of -version on the command line.
For example, issue this command to display the version of the SQLJ product:
java sqlj.tools.Sqlj -version
Options for Reporting and Line Mapping
Use these options to influence how the SQLJ translator program reports errors,
warnings, and status messages during SQLJ processing and to facilitate debugging.
-linemap
The -linemap flag directs the SQLJ translator program to map line numbers from an
SQLJ source file to locations in the corresponding .class file. When SQLJ run-time
errors occur, the line number reported by the JVM corresponds to the line number in
the SQLJ source file, making it easier to debug.
-status
The -status option causes the SQLJ translator program to display informational
messages during each phase of SQLJ processing: translation, semantic checking,
Java compilation, customization, and SQL compilation. You can specify the alias
-v
instead of -status on the command line to turn on -status. Do not assign a value
to this alias.
For example, this command causes SQLJ processing errors and status messages to
be reported immediately and maps line numbers in the .class file:
java sqlj.tools.Sqlj -status=true -linemap=true MyProg.sqlj