Skip navigation FileNet logo
  Open Client Developer's Guide
  Search  |  Index  |  Glossary   |  
Open menu Overview
Open menu Open Client Architecture
Close menu Developing for Process
  Open menu Process Overview
  Open menu Preparing for Development
  Open menu HTML Step and Launch Processors
  Java Processors
  Component-Integrator Work Performer
  Close menu Deploying Process Applications
    HTML Step Processors
    Close menu Java Step Processors
      Compiling Java Files
      Creating the JAR File
      Signing the JAR File
      Deploying the Java Application/Applet
      Configuring the Server for the Web Application
    Adding Step Processors to Workflow
Open menu Error and Exception Handling
Open menu Customizing the Framework
Globalization / Localization
Open menu General Information
   

Compiling the Java Files

Compiling Java application/applet files and adding it to a JAR file is required 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:

  1. Navigate to the local directory that 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.
  2. 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.
  3. Select all files and subdirectories in the selected directory and change the file attributes from Read-only to Read/Write.
  4. Open a command prompt, and change directory to the directory containing the Step Processor sample files (for example, \samplestep).
  5. 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

You can now create a JAR file to contain the compiled classes.