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 fakerootjava-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*.debThe 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.
These other articles I've written may be interesting to you as well:
Recent comments
1 week 21 hours ago
1 week 23 hours ago
2 weeks 4 days ago
3 weeks 7 hours ago
4 weeks 6 days ago
4 weeks 6 days ago
5 weeks 19 hours ago
5 weeks 2 days ago
5 weeks 3 days ago
5 weeks 3 days ago