gedit ~/.bashrc
set java home add java path:
export JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/" export PATH=$PATH:$JAVA_HOME/bin/