Dejan Levec

Install Sun Java on Debian Lenny

Installing Java on Windows is easy. Simply download .exe file and run it. But on Debian Linux it\’s a little bit harder because it\’s non-free software.

It\’s free as in beer. So you can actually “taste” it, but cannot get the source code.

[b]How to install Sun Java on Debian Lenny?[/b]

1. Open Terminal and login as root (type “su” and then type a password)

2. Type:
[quote]nano /etc/apt/sources.list[/quote]
3. In file change:
[quote]deb lenny main
deb-src lenny main[/quote]
[quote]deb lenny main non-free
deb-src lenny main non-free[/quote]
Save it.

4. Refresh aptitude packages by typing:
[quote]apt-get update[/quote]
5. Type:
[quote]apt-get install sun-java6-jre[/quote]
to install Java 6 from Sun.

Leave a Reply

Your email address will not be published. Required fields are marked *