Use the SQLJ translator, sqlj,
on your Java source code with embedded SQL to generate Java source
code and associated profiles. There is one
profile generated for each connection. For example, type in
the following command:
sqlj MyClass.sqlj
where MyClass.sqlj is the name of your SQLJ file. In this
example, the SQLJ translator generates a MyClass.java source code file and
any associated profiles. The associated profiles are named MyClass_SJProfile0.ser,
MyClass_SJProfile1.ser, MyClass_SJProfile2.ser, and so on.
Note: The SQLJ
translator automatically compiles the translated Java source code into a class file unless
you explicitly turn off the compile option with the -compile=false clause.