Release 10.1A: OpenEdge Development:
Java Open Clients

> ## Building an Open Client application that uses a Java proxy

> | To build a client application that uses a Java proxy:

> 1. Set up the Java client development environment.

> The OpenEdge ToolKit installation includes the JavaSoft JDK; however, it does not set up the system for general use of the JDK. If you are developing your client application on the same machine where you installed OpenEdge ToolKit and you want to use the JDK for your client application development, see the JavaSoft documentation for information on setting up the environment to use this JDK.

> 2. To build the client application on a machine other than the proxy generation machine, you must:

> 1. Copy the proxy `.class` files to a directory that mirrors the package hierarchy specified on the Java tab of the Generate dialog box in ProxyGen during the generation of the proxy. The package name implies a directory structure that you must maintain when you copy the proxy. You also can put the class files into a `.zip` or `.jar` file, as with any other Java classes.
> 2. Copy the proxy `.java` files to any directory on the system, typically together with the corresponding `.class` files.
> Note: ProxyGen provides the proxy `.java` files only for documentation. Do not attempt to modify and rebuild your proxy from these files.

> 3. Select and copy the Java Open Client Runtime package to any directory on the system. For information on selecting a Java Open Client Runtime package, see the "Selecting an Open Client Runtime package" section.
> 3. Update the Java `CLASSPATH` setting for the client application’s development environment to include the following:

> 1. The directory containing the proxy (`.class` files) or the `zip` or `jar` file from Step 2.
>    For class files, this is the directory above the package hierarchy.
> 2. The Open Client Runtime package you copied in Step 2.
> 4. Write, compile, and execute the client application. (This is the focus of the remainder of this book.)

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095