SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-19
Options for the Command Line Only
If you specify a relative path, the full path is derived from the current directory. For
example, if you run the command line from a current directory of /usr/dev and
specify -dir=myjava, the full path of the Java source files is /usr/dev/myjava.
If an SQLJ source file contains a package statement, the SQLJ translator program
places all generated files in subdirectories based on the package name. For example,
if an SQLJ source file specifies a package named app1 and if another SQLJ source
file specifies a package named app2, you need only specify the root directory,
-dir=myjava, for both source files on the command line. The Java file of the first
source file is stored in /usr/dev/myjava/app1, and the Java file of the other source
file is stored in /usr/dev/myjava/app2, where /usr/dev is the current directory.
For more information about the package statement, see Specifying the Java Package
of an SQLJ Program on page 3-4.
This command places the profiles, module definition files, and class files in the /mybin
directory and places the Java source file in the /myjava directory:
java sqlj.tools.Sqlj -d=mybin -dir=myjava MyProg.sqlj
For the locations of all program files, see Program Files on page 6-1.
Options for the Command Line Only
These options operate only on the command line and do not influence SQLJ
processing.
-help
The -help flag directs the SQLJ translator program to display information about the
SQLJ command-line options.
For example, issue this command to display the command-line help:
java sqlj.tools.Sqlj -help
-help-long
The -help-long option displays more descriptive information of the command-line
options, including:
•
Option name
•
Option type
•
Description
•
Current value
•
Location of the current value being set
For example, to display a long description of the command-line help, enter:
java sqlj.tools.Sqlj -help-long