1export JAVA_HOME_BIN=`which java`
2export JAVA_HOME_DIR=`dirname $JAVA_HOME_BIN`
3export JAVA_HOME=`dirname $JAVA_HOME_DIR`
1export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
2
3# Add JAVA bin directory to the PATH variable
4export PATH=$PATH:$JAVA_HOME/bin
5