Tuesday, August 12, 2014

Oracle JDK : how to create deb

http://www.santasoft.it/en/blog/20120910_flash-install-oracle-java-7-jdk-debian-way :

sudo apt-get install java-package

Download JDK tar.gz from Oracle's website:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

fakeroot make-jpkg jdk-7u60-linux-x64.tar.gz

A deb file is created in the same directory. Install the created deb file using
sudo dpkg -i oracle-j2sdk1.7_1.7.0+update60_amd64.deb

 sudo update-alternatives --config java

Other references:
https://wiki.debian.org/JavaPackage

No comments:

Post a Comment