Compiling the Java Files
Compiling Java application/applet files and adding it to a JAR file is
required in order to deploy a Java application. For Process applications,
compile a custom Java application or applet in a manner comparable to
compiling the sample Java Step Processor and Launch Step Processor provided
with the Process Development Environment (includes both application and
applet versions of these Processors), as shown in the procedure below.
Note: If you have not already done so, you
must complete the following actions before you can compile these samples:
To compile the unmodified sample Java Step and Launch Step Processors,
use the following procedure:
- Navigate to the local directory which contains the sample Step and
Launch Step Processor files. If you kept the directory structure the
same as on the PJAC and Toolkit Installation CD, the <drive>...\Developer
Files\samples\vwpanel directory on your development system contains
the directories and files for the sample Step and Launch Step Processors.
- Select the \samplestep directory or the \samplelaunch
directory, depending on whether you want to deploy the sample Java Step
Processor or the sample Java Launch Step Processor, respectively. For
your own custom application/applet, navigate to the appropriate directory.
- Select all files and subdirectories in the selected directory and
change the file attributes from Read-only to Read/Write.
- Open a command prompt, and change directory to the directory containing
the Step Processor sample files (for example, \samplestep).
- Compile the unmodified Step Processor or Launch Step Processor sample
Java applet or application by entering a command similar to the following
(modify for the appropriate JDK):
For Open Client Step and Launch Step Processor
applets:
Enter a statement similar to (assumes using the JDK 1.3.1 installed
by PJAC; modify for your JDK as appropriate):
C:\jdk1.3.1\bin\javac.exe -classpath .;"C:\<your directory>";"C:\<your
directory>\pw.jar";%CLASSPATH% VWSampleStepApplet.java
Note: You should specify the location of
the package as part of the compiler command, as shown here. Alternatively,
if you have already created a batch file that includes the pw.jar
location in the CLASSPATH variable, you can specify setenv
and need not specify the pw.jar location; for details, see the
Configure the Java Runtime Environment
(JRE) topic).
Similarly, you compile the unmodified Launch Step Processor sample
applet by entering a command similar to the following (from the directory
containing the Launch Step Processor sample):
C:\jdk1.3.1\bin\javac.exe -classpath .;"C:\<your directory>";"C:\<your
directory>\pw.jar";%CLASSPATH% VWSampleLaunchApplet.java
For Open Client Step and Launch Step Processor
applications:
Alternatively, if you want to use the sample Java applications, you
can compile the unmodified Step Processor sample or Launch Step Processor
sample applications by entering commands similar to the following (from
the directory containing the appropriate sample assumes using
the JDK 1.3.1 installed by PJAC; modify for your JDK as appropriate):
C:\jdk1.3.1\bin\javac.exe -classpath .;"C:\<your directory>";"C:\<your
directory>\pw.jar";%CLASSPATH% VWSampleStepApplication.java
C:\jdk1.3.1\bin\javac.exe -classpath .;"C:\<your directory>";"C:\<your
directory>\pw.jar";%CLASSPATH% VWSampleLaunchApplication.java
At this point, you are ready to create
a JAR file to contain the compiled classes.
|