Running an ODWEK application

To run an ODWEK application, you need to import the Java API package into your ODWEK application, compile your application, and then run it.

About this task

Before you begin developing and running an ODWEK application, ensure that you set up the development environment.

If you are not familiar with the classes and methods available to you, see the Javadoc.

Procedure

To develop and run an ODWEK application, the following list describes the general steps:

  1. Create your ODWEK application by using the methods that are available to you in the Java™ API. Import the Java API package in your ODWEK application file.
    The following example shows sample code with the line that imports the Java API package marked with *** characters.
    //*********************************************************
    import java.util.*;
    import java.io.*;
    import com.ibm.edms.od.*;            ***
    
    public class Logon
    {
      public static void main ( String argv[] )
      {
        .
        .
        .
      }
    }
  2. Compile your ODWEK application file (.java) with javac to produce the .class file. For instructions on compiling Java applications, see your Java reference publication.
  3. Run the Java interpreter on your application (.class file).
    The following example shows how you might run the Java interpreter on an application named Logon:java Logon server userid passwd 1450. In this example, Logon is the name of the .class file; server, userid, passwd, and 1450 are parameters for the application.