Installing Java

From NewbieDOC

 
Note
Note: 
Sun Java is available in the "non-free" repository for Debian Etch and later.

For example, the package for Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture dependent files) is "sun-java5-bin". This particular package is also avalaible from the "backports" repository for Sarge.

This article explains how to install Java if you don't want to use the Debian packages.
 

Contents

1 Visit the Java download site

Use a search engine, such as Google, to find the current download site. Search for

java linux download

You should find a download page something like http://www.java.com/en/download/linux_manual.jsp

2 Download the self-extracting binary file

The linux download is a self-extracting file. There is a link to detailed instructions on the web download page. Basically, you run the self-extracting binary file as root and it installs the JRE into the /usr/java/jre1.5.0 directory.

3 Configure and test your browser

There are further details in the instructions about how to enable, configure and test the installation.

--Chris Lale 13:36, 28 January 2006 (CET)

4 DEBian way of installing java package

First you should download binary java package from Sun Microsystems(TM) (i.e. jdk-1_5_0_04-linux-i586.bin).

The next step will be installing debian java-package packet

apt-get install java-package

And finally

make-jpkg jdk-1_5_0_04-linux-i586.bin

This method also suits for IBM(TM) 1.3, 1.4, and 5.0 Standard Edition and Blackdown Java-Linux 1.3 and 1.4 Standard Edition

Content is available under GNU Free Documentation License 1.2, unless otherwise stated.