SQLJ requires an installation of JDK1.1 or JDK1.2 from Sun Microsystems. It must be installed and the Java interpreter must be available in your path. In the rest of this page we assume that both the Java compiler (javac) and the Java interpreter (java) are installed correctly in your path.
Since SQLJ runs on top of the JDBC API, a driver compliant with the database to be used must be installed in your system. The current version of SQLJ has been tested with the 8.1.7.0 release of Oracle's JDBC driver.
Configure your environment as follows:
Specifically, in order to use SQLJ you must have
IMPORTANT!
This completes the installation.
To verify that your installation is correct, follow the instructions in the
"Getting Started" section of the
The following table provides information about the
Oracle JDBC drivers.
| JDBC Driver | JDBC Driver Class Name | JDBC URL |
|---|---|---|
| Oracle JDBC-OCI7 | oracle.jdbc.driver.OracleDriver | jdbc:oracle:oci7:@oracle_sid |
| Oracle JDBC-OCI8 | oracle.jdbc.driver.OracleDriver | jdbc:oracle:oci8:@oracle_sid |
| Oracle JDBC-Thin | oracle.jdbc.driver.OracleDriver | jdbc:oracle:thin:@host:port:oracle_sid |
| Oracle server-side JDBC | oracle.jdbc.driver.OracleDriver | jdbc:oracle:kprb: |
In the table, host corresponds to the machine name of the database
server, for example, localhost. The port corresponds to
the tcp/ip port # of the listener, for example 1521. The
oracle_sid corresponds to the TNS_alias defined in your local
tnsnames.ora file.
Since SQLJ relies on JDBC for acquiring the connections to be
used, your application can use any of the JDBC mechanisms recommended
by your vendor for loading the JDBC driver and specifying the database
URL.
/sqlj/demo/ANSI X3.135.10-1998 is available from
http://www.ansi.org
IMPORTANT!
While in previous releases, JPublisher only required translator.zip in
the CLASSPATH, you now also have to supply runtime.zip (or, if you use JDK 1.1 and
Oracle JDBC 8.1.7 you can specify runtime11.zip and under JDK 1.2 or later and JDBC 8.1.7 you
can specify runtime12.zip).
/sqlj/demo/jpub/