Update Performed on All On-domain Linux Systems

An update has been performed on all on-domain Linux systems.

OpenJDK 11 is now the default java version for Red Hat Enterprise Linux systems that are on-domain, in all open Linux labs, and on most office workstations.

The legacy java version 8 (aka java 1.8) is still available in both Open java and Oracle java flavors. However, they are deprecated and unsupported which means they will be removed in the future.

In order to use a non-default java version, set the JAVA_HOME environment variable to the version’s installation location and add it’s bin directory to the PATH in the Bash shell.

The following are some useful shell commands, including the paths to the various java versions:

# If setting Java Version to 8
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
# If setting to Oracle Java 8
export JAVA_HOME=/usr/java/jdk1.8.0_181-amd64
# If setting Java version back to 11 (default)
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk/
# Add JAVA_HOME to beginning of your path
export PATH=”${JAVA_HOME}/bin:$PATH”
# (Please note, the double quotes here may need to be replaced with the standard double quote characters.)
# Verify Version
java -version

If you have any questions about the Linux update, email IT at it-help@mtu.edu, call 487-1111, or visit www.mtu.edu/it.