IBM Books

Net.Data Language Environment Reference

Defining the Java Language Environment Cliette

Modify the sample file, makeClas.bat, or create a new .bat file to generate a Net.Data cliette class, called dtw_samp.class, for all your Java functions. The following example shows how the batch file, CreateServer, processes three Java functions:

rem Batch file to create dtw_samp for Net.Data
java CreateServer dtw_samp.java UserFunctions.java myfile.java
javac dtw_samp.java

The batch file processes the following files, along with the Net.Data-supplied stub file called Stub.java to create dtw_samp.class.

Writing a JDBC application or applet is very similar to writing a C application using DB2 CLI or ODBC to access a database. The primary difference between applications and applets is that an application might require special software to communicate with DB2, for example, DB2 Client Application Enabler. The applet depends on a Java-enabled Web browser, and does not require any DB2 code installed on the client.

Your system requires some configuration before using JDBC. These considerations are discussed at the DB2 JDBC Application and Applet Support Web site:

http://www.software.ibm.com/data/db2/jdbc/db2java.html


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]