I can never remember how to install Java on Debian, so here’s my version on how to do it the Debian Way (TM).
Download the Sun Java 2 Runtime environment or Development Kit from Sun’s Java site. The file you download should have a “.bin” extension. Then install:
apt-get install java-package fakeroot
java-package is a set of Debian scripts for creating your own Debian-ized Java package. fakeroot lets you run certain programs as root, such as the Debian package creation process. After these are installed, run:
fakeroot make-jpkg jdk-*.bin
sudo dpkg -i sun-j2sdk*.deb
The first creates a Debian package from the Sun binary installer, while the second installs the created Debian package.
This will fulfill all Java dependencies in Debian, something you would not get if you installed Java via some other method. It’s also the “official” Java, as opposed to using something like Blackdown, and makes you less reliant on having to rely on other people for packaging. For example, I used this to create my own AMD64 64-bit Java package.
Recent comments
7 weeks 1 day ago
9 weeks 5 days ago
10 weeks 21 hours ago
27 weeks 6 days ago
32 weeks 1 day ago
32 weeks 1 day ago
34 weeks 2 days ago
35 weeks 6 days ago
36 weeks 1 day ago
37 weeks 5 days ago