Setting Up the Java Environment

When deploying component interfaces on a local client machine or web server with Java bindings, you must have:

  • The third-party Java application.

  • The application server and database.

  • The Java Virtual Machine (JVM) supplied with Sun Microsystems Java Development Kit (JDK). The JDK may already be installed on your system. To verify that the JVM is installed, check the %PS_HOME%\JRE directory. If it is not installed, you can obtain download information at the Oracle web site at http://www.oracle.com/technetwork/java/javase/downloads/index.html.

To set up your client machine to access the component interface API using Java:

  1. If it is not already installed on your system, install the Sun Microsystems JDK to enable the JVM.

    You can download the JDK to any location, for example c:\bea\jkd<version>.

  2. Set the environment variable PATH to include the directory containing jvm.dll.

    For example, you might set it at c:\bea\jkd<version>\jre\bin\client; or, if the PeopleTools install is done locally, the path is <PS_HOME>\jre\bin\client.

  3. Set the environment variable CLASSPATH to include:

    • The file psjoa.jar (typically <PS_HOME>\class\psjoa.jar).

    • The target directory selected during the Build API process (<PS_HOME>\class).

Note: In previous releases, sites using UNIX servers received the following error message when invoking a component interface through the PeopleSoft Java Object Adapter (PSJOA): PSProperties not loaded from file. To resolve this issue, copy the pstools.properties file to the component interface execution directory.