Start an ActiveX application and configuring service programs
To run an ActiveX service program such as Active Server Page (ASP) that is to use the ActiveX to the Enterprise Java Bean (EJB) bridge, some initial configuration (to set appropriate environment variables and to enable the ActiveX to EJB bridge to find its XJB.JAR file and the Java run time) is necessary. This configuration sets up the environment within which the ActiveX service program can run.
The XJB.JClassFactory must find the Java run time dynamic link library (DLL) when initializing. In a service program such as Internet Information Server we cannot specify a path for its processes independently; set the process paths in the system PATH variable. This limitation means that we can only have a single JVM version available on a machine using ASP.
To add the Java Runtime Environment (JRE) directories to the system path, complete one of the following task.
On Windows XP systems...
- Open the Control Panel, then double-click the System icon.
- Click the Advanced tab on the System Properties window.
- Click Environment Variables.
- Edit the Path variable in the System Variables window.
- Add the following information to the beginning of the path that is displayed in the Variable Value field:
C:\WebSphere\AppClient\Java\jre\bin;C:\WebSphere\AppClient\Java\jre\bin\classic;
where C:\WebSphere\AppClient is the directory in which you installed the Java client in the WebSphere product.
- Click OK in the Edit System Variable window to apply the changes.
- Click OK in the Environment Variables window.
- Click OK in the System Properties window.
- Restart Windows XP.
What to do next
After you change the system PATH variable you must reboot the Internet Information Server machine so that Internet Information Server can see the change.
Related tasks
Start an ActiveX application and configuring non-service programs
setupCmdLineXJB.bat, launchClientXJB.bat and other ActiveX batch files