«^»
4.6. What steps are needed to run the above example?



First, compile the program with a JDK 1.1.x compiler:

javac BothTion.java
At runtime, the program either loads the class COM.imaginary.sql.msql.MsqlDriver or it loads the class sun.jdbc.odbc.JdbcOdbcDriver. The latter (which is the JDBC-ODBC Bridge) forms part of the JDK 1.1.x distribution whereas the class files for George Reese's mSQL JDBC driver have been put in the directory /users/dcl0bjc/public_html/Java/COM/imaginary/sql/msql. So at runtime the CLASSPATH variable needs to be set to ensure that the Java interpreter finds the MsqlDriver class:
setenv CLASSPATH /users/dcl0bjc/public_html/Java:.
When we run the BothTion program, an argument on the command line is used to indicate which database we want the program to access:
java BothTion bjc1