Click to install Debian GNU/Linux
More details about it
Use of Debian logo does not imply endorsement by the Debian project.
We are not affiliated in any way with Microsoft.
'Microsoft' is a trademark of Microsoft Corporation.
Sun Java is now a package in non-free. Either install the Java development kit:
#apt-get install sun-java6-jdk
or the Java runtime environment
#apt-get install sun-java6-jre
For Etch you will find Java 5 instead:
#apt-get install sun-java5-jdk
or the Java runtime environment
#apt-get install sun-java5-jre
Sun recommends you update the alternatives system to have Sun's tools as the default:
#update-java-alternatives -s java-6-sun
Or for java 5:
#update-java-alternatives -s java-1.5.0-sun
This document explains what a Debian repository is and how you can set up one.
- Search for a package
- Submit a new repository
- Contact us to report problems or from the address you listed the site with to modify/remove entries. Please include the site ID when sending requests.
- View the full list of sites (BIG page -- please use sparingly)
- The To-Do List
The official Debian 4.0 contains Sun JDK 5 in its non-free section. To get it, you edit /etc/apt/sources.list to enable the non-free repository, and then run apt-get install sun-java5-jdk.
Here's my /etc/apt/sources.list (with my changes high-lighted in red):
#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 200704
07-12:15]/ etch contrib main
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407
-12:15]/ etch contrib main
deb http://ftp.debian.org/debian/ etch main non-free deb-src http://ftp.debian.org/debian/ etch main non-free deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib
Running apt-get install sun-java5-jdk caused apt-get to include several other dependencies and suggested other packages to install.




