Skip to content
jordansissel edited this page Jan 14, 2013 · 5 revisions
% wget http://www.java.net/download/jdk7u12/archive/b04/binaries/jdk-7u12-ea-bin-b04-linux-x64-05_dec_2012.tar.gz

% tar -zxf jdk-7u12-ea-bin-b04-linux-x64-05_dec_2012.tar.gz

% fpm -s dir -t deb -n jdk7 -v 7u11 --template-scripts --after-install =(echo "update-alternatives --install /usr/bin/java java <%= prefix %>/bin/java  100") --after-remove =(echo "update-alternatives --remove java <%= prefix %>/jre/bin/java") --prefix /usr/lib/jvm/jdk-7u11 .

The above includes the bullshit necessary to manage 'alternatives' for systems like Debian that use it. Feel free to remove the --after-install and --after-remove flags if you don't need it.

Clone this wiki locally