There is a question about How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? There are 23 answers at the moment, most of them are either explaining how to do it manually (unpack, move file, create links, ...) or how to add a PPA and install a package, and none of them mentions using java-package
to create your own deb package.
Creating your own deb package is very easy:
You install java-package
sudo apt-get install java-package
You download the Oracle tar.gz archive.
You create your deb package
fakeroot make-jpkg jdk-7u79-linux-x64.tar.gz
An you install it
sudo dpkg -i oracle-java7-jdk_7u79_amd64.deb
Am I missing something? Is there any reason not to use java-package
? Something wrong with it?