INFORMIX
Informix JDBC Driver Programmer's Guide
Chapter 1: Getting Started
Contents Index

Using the Driver in an Applet

You can use Informix JDBC Driver in an applet to connect to an Informix database from a browser such as Netscape Navigator or Microsoft Internet Explorer. The following steps show how to specify Informix JDBC Driver in the applet and how to ensure that the driver is correctly downloaded from the Web server.

To use Informix JDBC Driver in an applet

    1. Install the ifxjdbc.jar file in the same directory as your applet class file.

    To use the version of the driver that supports debugging, install the file ifxjdbc-g.jar instead of ifxjdbc.jar.

    2. Specify the ifxjdbc.jar file in the ARCHIVE attribute of the APPLET tag in your HTML file, as shown in the following example:

    To use the version of the driver that supports debugging, specify the file ifxjdbc-g.jar instead of ifxjdbc.jar.

Important: A few browsers do not support the ARCHIVE attribute of the APPLET tag. If you think this is true of the browsers that are going to download your applet, you must unpack and install the ifxjdbc.jar file in the root directory of your Web server.
If the browsers also do not support the JDBC API, you must install the class files included in the java.sql package in the root directory of the Web server as well.
See your Web server documentation for information on installing files in the root directory.




Informix JDBC Driver Programmer's Guide, Version 1.22
Copyright © 1998, Informix Software, Inc. All rights reserved.