Previous Topic: Java Virtual MachineNext Topic: Data Source Definitions on UNIX Platforms


JDBC Driver Installation on UNIX

Since UNIX systems communicate with the CA Datacom Server mainframe server through a proxy server or a Type 4 driver connection, the only file that is needed for either a Driver or a datasource connection is cadcjdbc.jar. These files can be copied from either the Windows environment or the USS environment. To verify that the jar file is installed correctly, one or more of the Java samples can be copied as well. If cadcjdbc.jar is copied from a Windows system and it was installed, the default install location cadcjdbc.jar is located in “C:\Program Files\CA\CA DatacomServer\Java\Classes”. If the cadcjdbc.jar file is copied from USS, it is located in “/datacomdir/lib” where /datacomdir is the subdirectory that was specified when the product was installed.

Follow these steps:

  1. Create an installation directory in the file system. In this guide, the installation directory is referred to as /cadcdir.

    Applications are commonly installed in “/opt” or “/usr/local” subdirectories. For example:

    /opt/CA/cadcdir
    

    Copy the cadcjdbc.jar file from either the Windows or USS directory noted above, into the directory in item 1.

  2. Add an entry to the classpath environmental variable. The location of cadcjdbc.jar and sample Java files should be set in the classpath to ensure that Java can locate the appropriate class/.jar files. The classpath can be set either as a startup environmental variable or it can be set at execute time. The variable for UNIX is typically CLASSPATH.

    For example, to run a JDBC application that uses the JDBC driver, this variable could be set as follows:

    set CLASSPATH=/$CA_DATACOM/lib/cadcjdbc.jar:$CLASSPATH
    export CLASSPATH