t

Easy installation for JDK 8 on Ubuntu

  1. Downloading
  2. 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
      
  3. 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