When using 3270 Pathway, the Java compiler and the Java runtime need to know the location of the 3270 Pathway classes. In some circumstances it is necessary to set the CLASSPATH environment variable. In all cases, it is advisable the when setting CLASSPATH, it should be done as locally as possible.
When working in an IDE, it is not normally necessary to set the CLASSPATH
environment variable.
The location of the Bean classes is determined by the IDE when 3270 Pathway JAR is loaded.
Building applications and applets using the JDK
When using the JDK to build your application, it is necessary to set the CLASSPATH environment variable. It is recommended that the CLASSPATH is set in as local a context as possible in order to prevent unexpected results from other applications.
Type the following at the command line:
SET CLASSPATH=%CLASSPATH%;INSTALL_DIR\lib\kixemuapi.jarwhere INSTALL_DIR is the directory defined in the installation section.
Type the following at the command line: From a Korn shell type the following:
export CLASSPATH=$CLASSPATH:INSTALL_DIR/lib/kixemuapi.jarwhere INSTALL_DIR is the directory defined in the installation section.
The requirements in this case are the same as for building your application. It is, however, most likely that you will want to wrap your application in a shell script or batch file for easier use. The setting of the CLASSPATH should be performed in that script or batch file instead.
Normally, a Java applet is run in a Web Browser. It is the responsibility of the HTML for the applet to specify the location of the classes and JARs required to run that applet. The CLASSPATH environment variable should therefore not be set when running a Web Browser.