Easy installation for JDK 8 on Ubuntu Apr 13, 2015 Downloading Go http://www.oracle.com/technetwork/java/javase/downloads/ Click the JDK download button Accept the license agreement and click the linux-x64.tar.gz Installing Move to the desired java home (I recommended “/usr/local/”) and decompress the file cd /usr/local/ sudo mv ~/Downloads/jdk-8u40-linux-x64.tar.gz ./ sudo tar xvzf jdk-8u40-linux-x64.tar.gz Setting (recommended) Open /etc/profile vi /etc/profile Add the following two lines export JAVA_HOME="/usr/local/jdk1.8.0_40" PATH="$JAVA_HOME/bin:$PATH" comments powered by Disqus