Configure the ActiveX environment for a service program

To run an ActiveX service program such as an Active Server Pages (ASP) application that uses the ActiveX to enterprise bean bridge, perform some initial configuration to set appropriate environment variables and to enable the ActiveX to enterprise bean bridge to find its XJB.JAR file and the Java run time. This configuration sets up the environment within which the ActiveX service program can run.

The XJB.JClassFactory must find the Java runtime Dynamic Link Library (DLL) when initializing. In a service program such as Internet Information Server you cannot specify a path for its processes independently; set the process paths in the system PATH variable. This limitation means that you can only have a single Java virtual machine version available on a machine when you use ASP.

To add the JRE directories to your System path, follow the steps for your operating system:

Windows 2000

  1. Click Start --> Settings --> Control Panel.
  2. Double-click the System icon.
  3. Click the Advanced tab in the System Properties window.
  4. Click Environment Variables.
  5. Edit the Path variable in the System Variables window. To the beginning of the path that is displayed in the Variable Value input box, add these directories:
    installation_directory\Java\jre\bin;installation_directory\Java\jre\bin\classic;

    where installation_directory is the directory in which you installed the WebSphere client runtime support.

  6. Click OK in the Edit System Variable window to apply the changes.
  7. Click OK in the Environment Variables window.
  8. Click OK in the System Properties window.
  9. Restart Windows 2000. After you change the System PATH variable reboot the Internet Information Server machine so that Internet Information Server can see the change.

Windows NT

  1. Click Start --> Settings --> Control Panel.
  2. Double-click the System icon.
  3. Click the Environment tab in the System Properties window.
  4. Edit the Path variable in the System Variables window. To the beginning of the path that is displayed in the Variable Value input box, add these directories:
    installation_directory\Java\jre\bin;installation_directory\Java\jre\bin\classic;

    where installation_directory is the directory in which you installed the WebSphere client runtime support.

  5. Click Set to apply the changes.
  6. Click OK.
  7. Restart Windows NT. After you change the System PATH variable reboot the Internet Information Server machine so that Internet Information Server can see the change.