How To: Update or Change the Java install location for SRM-RIB service
search cancel

How To: Update or Change the Java install location for SRM-RIB service

book

Article ID: 434094

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

Java was updated on the OS and as a result SRM-RIB no longer functions or starts.

Cause

The root cause is that the install location has changed and SRM-RIB can no longer see Java in the old location because it does not exist

Resolution

To update JRE location on the SRM-RIB Host:

1. Edit the $SRMRIBHOME/conf/srm-rib-jetty.conf file

2. Change:

# Java Settings
JAVA_EXECUTABLE_PATH=/Java/install/directory/jre17/jdk-17.0.18+8-jre/bin/java

Example:

# Java Settings
#JAVA_EXECUTABLE_PATH=/usr/lib/jvm/java-17-openjdk-17.0.18.0.8-1.el9.x86_64/bin/java
JAVA_EXECUTABLE_PATH=/Java/install/directory/jre17/jdk-17.0.18+8-jre/bin/java

Save the file.

3. Restart the service: 

systemctl stop srm-rib

systemctl start srm-rib