You can change the JRE of active servers by editing their configuration
files.
About this task
The new JRE must be from the same vendor as the current JRE.
Procedure
- Stop the server.
- Update the location of the JRE in the following files:
- Set the value of the JAVA_HOME system variable to the location
of the JRE.
- In the file conf\server\installed.properties, set the value of
the install.java.home property to the location of the JRE.
Note: The value of the JAVA_HOME system variable must match the value
of the install.java.home property.
- If the server is running as a service on Windows
- Open the file
server_install\bin\service\_service.cmd in a
text editor.
- Edit the line that starts with the code set JAVA_HOME to the path
to the new JRE.
- Open a command prompt as an administrator.
- Go to the server_install\bin\service
folder.
- Remove the service by running the following command:
_service.cmd remove service_name
Use the
name of the service for service_name. To find the
service name, open the services view and find the entry that starts with
IBM® UrbanCode™ Deploy. The service name is in parentheses in this entry.
- Reinstall the service by running the following command:
_service.cmd install service_name
- Start the server.