linux

stuff related to system administration

Install Oracle java 8 on Debian 10

  1. Download latest version of java from www.oracle.com
  2. Extract archive in /usr/lib/jvm (if doesn’t exist create it)
    • cd /usr/lib/jvm && tar -zxf /tmp/jdk-8u231-linux-x64.tar.gz
    • chown -R root: jdk1.8.0_231/
    • ln -s jdk1.8.0_231 java-8-oracle
  3. Configure path to it with update-alternatives
    • update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/java-8-oracle/jre/bin/java” 111
    • update-alternatives –config java

Posted by admin, 4 comments