SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-25
Options for the Java Compiler
-compiler-encoding-flag
The -compiler-encoding-flag passes the -encoding value to the Java 
compiler. For a Java compiler that does not support the -encoding option, set 
-compile-encoding-flag to false. For more information about the -encoding 
option, see -encoding on page 5-22.
-compiler-executable
The -compiler-executable option specifies a different version of the Java 
compiler, other than javac, for the SQLJ translator program to use. If you do not 
specify the directory path along with name of the Java compiler executable, the SQLJ 
translator program looks for the executable according to the class path setting. For 
more information, see Setting the Class Path on page 2-4.
Disallowed Java Compiler Options
The SQLJ translator program disallows these options on the command line:
•
-C-d 
•
-C-encoding 
These options are disallowed to prevent you from setting the global options (-d and 
-encoding) and the Java compiler-specific options (-C-d and -C-encoding) to 
conflicting values on the same command line. If you specify either -C-d or 
-C-encoding on the command line, the SQLJ translator program generates an error.
For example, issue this command with the -C-d option:
java sqlj.tools.Sqlj -C-d=myjava MyProg.sqlj
The SQLJ translator program returns this error:
Error: use Translator option -d rather than java compiler option: -C-d
For example, issue this command with the -C-encoding option:
java sqlj.tools.Sqlj -C-encoding=SJIS MyProg.sqlj
The SQLJ translator program returns this error:
Error: use Translator option -encoding rather than java compiler option: 
-C-encoding
For alternatives, see -d on page 5-18 and -encoding on page 5-22.










