Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jesussuarz/f9009ac252fb910cd63c5f64abc831cc to your computer and use it in GitHub Desktop.
Save jesussuarz/f9009ac252fb910cd63c5f64abc831cc to your computer and use it in GitHub Desktop.
Fix error JAVA PATH Site24x7 On-Premise Poller

Fix error JAVA PATH Site24x7 On-Premise Poller

I recently encountered a somewhat annoying issue while attempting to install the Site24x7 On-Premise Poller on an AlmaLinux 8.9 machine.

The problem manifested as follows:

./Site24x7OnPremisePoller_64bit.bin Preparing to install... 
Extracting the JRE from the installer archive... 
Unpacking the JRE... 
Extracting the installation resources from the installer archive... 
Configuring the installer for this system's environment... 
No Java virtual machine could be found from your PATH environment variable. 
You must install a VM prior to running this program.

However, Java 1.8 was installed according to the documentation provided here: https://support.site24x7.com/portal/en/kb/articles/jre-libraries-are-missing-or-not-compatible

After some research, I managed to solve it using the following command:

./Site24x7OnPremisePoller_64bit.bin LAX_VM /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.402.b06-2.el8.x86_64/bin/java

However, upon completing the installation and starting the service, I encountered the following error:

#systemctl status site24x7-onpremise-poller
site24 site24x7-onpremise-poller[8911]: ./StartServer.sh: line 34: /opt/Site24x7OnPremisePoller/jre/bin/java: No such file or directory

To resolve this error, I performed the following steps:

mkdir -p /opt/Site24x7OnPremisePoller/jre/bin/
ln -s /usr/lib/jvm/jre-1.8.0-openjdk/bin/java /opt/Site24x7OnPremisePoller/jre/bin/java
systemctl restart site24x7-onpremise-poller

I hope this can help others facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment