Installing Java
- Open an SSH session to the server and log in.
Run the following command to determine whether a JRE is installed and configured properly:
$JAVA_HOME/bin/java -versionIf the above command returns something similar to the following, then move on to Ensuring the installed version of Java is supported:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)If the above command returns something similar to the following:
bash: /bin/java: No such file or directorythen you'll need to either install Java or correctly set your JAVA_HOME environment variable.
Next, try running java directly:
java -version- If that command works (gives a version number), then you need to set the JAVA_HOME environment variable:
Quick and easy way: The following single-line command will attempt to locate the correct java installation directory and set your JAVA_HOME environment variable appropriately:
export JAVA_HOME=$(readlink -f `which java` | sed 's#/bin/java##') && $JAVA_HOME/bin/java -versionIf the above command succeeds and a java version is printed out, you can continue to Ensuring that the installed version of Java is supported. If it fails, you'll need to carry on to install.
- The long way: If you know what path Java has been installed to, you can manually set the JAVA_HOME environment variable to that location. The value of the JAVA_HOME environement variable should be the full absolute path to the main JRE directory. This means it should have a bin/ directory, and running $JAVA_HOME/bin/java -version should work normally.
Ensuring the installed version of Java is supported:To ensure the version of Java that is installed is supported by iSymphony, note the output of the command $JAVA_HOME/bin/java -version, and compare it to the requirements listed on our Supported Platforms page. In particular, note the following:
- iSymphony requires Java version 6 or higher. This will appear as the version "1.6.X_X" in the output.
- iSymphony requires the Sun/Oracle JRE. You can identify the Sun/Oracle JRE by the text "Java Hotspot(TM) in the output of the version command.
If the version of Java that is installed does not meet the requirements, you'll need to installed a supported version.
Installing JavaDetailed instructions for installing the Oracle JRE on many platforms are available on Oracle's website. Consider two notes when selecting which version and platform to download:
- iSymphony supports both 32-bit and 64-bit JREs. We typically recommend installing the 64 bit JRE, since it provides the ability to run applications in either 32 bit or 64 bit mode.
- iSymphony will run on any JRE version 6 or higher. We typically recommend using the latest available release, since it will be supported by Oracle longer and require less drastic updates when support for an older version is ended.
After installing the Oracle JRE, you may need to log out and log back into the server to get the new value for the JAVA_HOME environment variable. You can use the same command as above ($JAVA_HOME/bin/java -version) to check whether it has been installed properly.