Installing Java - the Debian way

Sandip Bhattacharya <[email protected]> Fri, 01 Oct 2004 03:33:14 +0530
Newsgroups gmane.user-groups.linux.delhi.devel,gmane.org.user-groups.java.delhi
Organization Puroga Technologies Pvt. Ltd.
Message-ID <[email protected]>
[x-posted]

http://martinfowler.com/bliki/DebianJava.html

Installing most things on Debian is sinfully easy: apt-get install 
package-name. Sadly Java is an exception since it's not in the basic debian 
system. I recently downloaded and installed java 1.5 or 5, or whatever 
they're calling it these days on my Debian Sid desktop. In brief the 
procedure is.

# apt-get install mpkg-j2se fakeroot
download the sun jdk from java.sun.com
$ fakeroot /usr/bin/mpkg-j2se j2re-1_4_2_05-linux-i586.bin
# dpkg -i sun-j2sdk1.5_1.5.0_i386.deb
# apt-get install sun-j2sdk1.5debian
# update-alternatives --config java

[...]

-- 
Sandip Bhattacharya    *    Puroga Technologies   *     sandip-/[email protected]
Work: http://www.puroga.com        *         Home: http://www.sandipb.net

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3