Q:

How do I create deb package for Oracle JDK?

How do I create a deb package for Oracle JDK for personal use?

A:

there's a script that downloads java packages from Oracle and builds a local deb repository so you can install JRE, JDK and java plugin.
https://github.com/flexiondotorg/oab-java6
cd ~/
wget https://github.com/flexiondotorg/oab-java6/raw/master/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh

For Java 7 run:
sudo ./oab-java.sh -7

The debs will be available in /var/local/oab/deb.

