To use IBM 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 to set your CLASSPATH environment variable:
setenv CLASSPATH /jdbcdriv/lib/ifxjdbc.jar:$CLASSPATH
To add localized message support, specify ifxlang.jar as well:
setenv CLASSPATH /jdbcdriv/lib/ifxjdbc.jar:/jdbcdriv/lib/ifxlang.jar: $CLASSPATH
cd /jdbcdriv/lib jar xvf ifxjdbc.jar setenv CLASSPATH /jdbcdriv/lib:$CLASSPATH
To add localized message support, specify ifxlang.jar as well:
cd /jdbcdriv/lib jar xvf ifxjdbc.jar jar xvf ifxlang.jar setenv CLASSPATH /jdbcdriv/lib:$CLASSPATH
There are two ways to set your CLASSPATH environment variable:
set CLASSPATH=c:\jdbcdriv\lib\ifxjdbc.jar;%CLASSPATH%
To add localized message support, specify ifxlang.jar as well:
set CLASSPATH=c:\jdbcdriv\lib\ifxjdbc.jar;c:\ jdbcdriv\lib\ifxlang.jar;%CLASSPATH%
cd c:\jdbcdriv\lib jar xvf ifxjdbc.jar set CLASSPATH=c:\jdbcdriv\lib;%CLASSPATH%
To add localized message support, specify ifxlang.jar as well:
cd c:\jdbcdriv\lib jar xvf ifxjdbc.jar jar xvf ifxlang.jar set CLASSPATH=c:\jdbcdriv\lib;%CLASSPATH%
For more information on the jar utility, refer to the Java documentation at http://java.sun.com.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]