Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Last active December 2, 2021 06:56
Show Gist options
  • Save swyngaard/868feb5d4bca174bfbb10609acb0524f to your computer and use it in GitHub Desktop.
Save swyngaard/868feb5d4bca174bfbb10609acb0524f to your computer and use it in GitHub Desktop.
Download and install Oracle Java 8 in Debian
Download archive file:
$ wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz"
Install java-package:
$ sudo aptitude install java-package
Build .deb archive from the tar file:
$ make-jpkg jdk-8u121-linux-x64.tar.gz
The above command should produce a .deb archive named similiar to the following:
oracle-java8-jdk_8u121_amd64.deb
Install the deb file:
$ sudo dpkg -i oracle-java8-jdk_8u121_amd64.deb
$ sudo aptitude -f install
References:
[1] https://gist.github.com/scottvrosenthal/11187116
[2] https://wiki.debian.org/JavaPackage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment