Upgrade Java for Stages


If you need to upgrade your Java version please proceed as follows:

Windows:

Linux:

touch /etc/profile.d/java_home.sh
cat <<EOF> /etc/profile.d/java_home.sh
export JAVA_HOME=\$(readlink -f /usr/bin/java | sed "s:/bin/java::")
export PATH=\$PATH:\$JAVA_HOME/bin
EOF
source /etc/profile