Informix JDBC Driver Programmer's Guide
Chapter 1: Getting Started
Contents
Index
Using the Driver in an Application
To use Informix JDBC Driver in an application, you must set your
CLASSPATH
environment variable to point to the driver files. The
CLASSPATH
environment variable tells the Java virtual machine (
JVM
) and other applications where to find the Java class libraries used in a Java program.
There are two ways of setting your
CLASSPATH
environment variable:
Add the full pathname of the
ifxjdbc.jar
file to the
CLASSPATH
environment variable, as shown in the following example:
setenv CLASSPATH /work/jdbcdriver_home/lib/ifxjdbc.jar:$CLASSPATH
To use the version of the driver that supports debugging, specify the file
ifxjdbc-g.jar
instead of
ifxjdbc.jar
.
Unpack the
ifxjdbc.jar
file and add its directory to the
CLASSPATH
environment variable, as shown in the following example:
cd /work/jdbcdriver_home/lib
jar xvf ifxjdbc.jar
setenv CLASSPATH /work/jdbcdriver_home/lib:$CLASSPATH
To use the version of the driver that supports debugging, specify the file
ifxjdbc-g.jar
instead of
ifxjdbc.jar
.
For more information on the
jar
utility, refer to your JavaSoft documentation at the following Web site:
http://www.javasoft.com
Informix JDBC Driver Programmer's Guide
, Version 1.22
Copyright © 1998, Informix Software, Inc. All rights reserved.