Install Oracle JDK in Linux HD
Download Java SE from oracle official page: http://www.oracle.com/technetwork/java/javase/downloads/index.html After that follow the video instruction to install java in linux (Oracle JDK in Linux) After that configure alternative using update-alternative commands as in Video. Make sure that You need to setup PATH variable in Linux in ~/.bashrc # Exporting Java JDK Profile export JAVA_HOME=/opt/jdk8/ export JRE_HOME=/opt/jdk8/jre export PATH=$PATH:/opt/jdk8/bin:/opt/jdk8/jre/bin above part are just suggestion here. Make sure you must have to provide in JAVA_HOME=/your_JDK_DIR and also for JRE_HOME in PATH too. and follow the command : update-alternative --configure java and select prefered version in.