Java Cannot Be Found

Last modified by ryanp on 2021/09/10 22:40

Symptoms

Server is unable to start and throwing the following error:

JAVA_HOME is defined, but the 'java' executable cannot be found in:

<<path>>

This is a fatal error. Verify your JAVA_HOME environment variable is set in ./config-vars.sh

Cause

iSymphony cannot find the JRE path from the specified JAVA_HOME variable.

Resolution

Run the following script and provide the path to the JRE: /opt/isymphony3/server/config.sh

The path should be provided without the bin. For example, if java is located at: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.51-0.b16.el6_6.x86_64/jre/bin/java

You can run the config.sh script and pass inĀ /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.51-0.b16.el6_6.x86_64/jre/ when prompted for the path.

If you do not know where java is located you can use the following command: which java

This will return a symbolic link pointing to the java executable. Use the following command to find the directory, passing in the path returned from the which command: ls -la path

   
iSymphony