C H A P T E R  4

Using the Sun 3270 Pathway Bean

This chapter explains how to use the Sun 3270 Pathway Bean in your environment of choice. The Sun 3270 Pathway Bean is located in the JAR file pathway_bean.jar, which is located in the INSTROOT/lib directory. This chapter contains the following topics:


Using Sun 3270 Pathway Bean With the JDK

If you want to use the JDK to write programs that use the Sun 3270 Pathway Bean, set your CLASSPATH environment variable to reference the Pathway Bean JAR.

For the UNIX Korn shell:

$ export CLASSPATH=$CLASSPATH:INSTROOT/lib/pathway_bean.jar

For Microsoft Windows:

C:\> set CLASSPATH=%CLASSPATH%;INSTROOT\lib\pathway_bean.jar

In both cases, replace INSTROOT with the name of the top-level directory where you installed Sun 3270 Pathway.


Using Sun 3270 Pathway Bean in an IDE

Because the Sun 3270 Pathway Bean is a Java Bean, it can be used in any environment where a standard Java Bean can be used; for example, Sun ONE Studio.

To use the bean in your environment, refer to the documentation for your IDE for information about adding a Java Bean.