Compiling SQLJ Code
Once you have created a Java program using SQLJ, you use the sqlj program to compile the code. You can invoke this program using the following syntax:
sqlj [option_list]file_list
The flags available for the option list are:
- -cache [=True | False]
Boolean indicating whether to enable caching of results of online semantics checking. Default is False.
- -checkfilename [=True | False]
Boolean indicating whether to display warnings if source filename does not match name in public class. Default is True.
- -classpath
Specifies Java CLASSPATH.
- -codegen=oracle
Suppresses creation of profile files. New with Oracle9i.
- -compile [=True | False]
Boolean indicating whether .java file produced should be compiled. Default is True.
- -compiler-executable
Executable name of Java compiler.
- -compiler-output-file
File for output from compiler. If not present, displayed on screen.
- -Coption
Option to be passed to Java compiler.
- -d
Directory for .ser and .class files produced.
- -default-customizer
Class name for profile customizer. Default is oracle.sqlj.runtime.util.OraCustomizer.
- -dir
Directory for .java files produced.
- -driver
Class name for JDBC driver to use. Default is oracle.jdbc.driver.OracleDriver.
- -explain [=True | False]
Boolean indicating whether to turn on detailed error messages. Default is False.
- -g
Causes compiler to include debugging code.
- -help
Displays list of options.
- -Joption
Option to be passed to JVM.
- -linemap [=True | False]
Boolean indicating whether to enable the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access