Community articleSetting Up the Java Development Environment (Classic only)
Added by IBM contributorIBM on November 25, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

To use the Java API you must:
  • Configure your integrated development environment to use the API.
  • Configure your computer to run applications that use the API.
Note: You cannot configure your system to use both the Classic and Streaming Java APIs. You must choose only one.

To configure your integrated development environment to use the Java API:

Add the following files to your CLASSPATH:
   <WIN SYS>\PureEdge\80\java\classes\pe_api.jar
   <WIN SYS>\PureEdge\80\java\classes\uwi_api.jar

Note: You cannot add both Classic and Streaming Java API files to your classpath. If you do, you will receive errors and your application will not work.

To configure your computer to run applications that use the API:

  1. From the Start menu, select Settings -> Control Panel -> System.
  2. On the System Properties sheet, click the Advanced tab.
  3. Click Environment Variables.
  4. Under System Variables, select the CLASSPATH variable and click Edit.
    • If the CLASSPATH variable does not exist in your list of environment settings, you must create it: click New and type CLASSPATH in the Variable Name field.
  5. In the Variable Value field, enter the location of the following components:
    • pe_api.jar
    • pe_api_native.jar
    • uwi_api.jar
    • uwi_api_native.jar
    • commons-codec.jar
    • xmlsec-1.4.1.jar
    • current directory (represented by a period)
  6. Click OK.
  7. Click OK.