• get JRE/JDK from Oracle’s site
  • rename its extension to ‘tar.gz’
  • install java-package
    sudo apt-get install java-package
  • build a .deb file
    fakeroot make-jpkg server-jre-8u40-linux-x64.tar.gz