How to INSTALL SUN JAVA 6 JDK or JRE on UBUNTU 10.10

No replies
aamiraarfi
aamiraarfi's picture
Offline
Last seen: 4 years 8 weeks ago
Joined: 2009-11-02
bOt Points: 457

NOTE: Before you try the steps below ensure that the multiverse repository is enabled  

>>> To install JRE just type-in the following command

$ sudo apt-get install sun-java6-jre

 

>>>To install JDK just type-in the following command

$ sudo apt-get install sun-java6-jdk 

 

>>>If you want more than here is a better option in one go..

It will install JRE + Java Plugin for Mozilla like browsers + the Java  Lucida TrueType fonts

$ sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

 

>>> How to test Java is installed properly

Type-in the following command from a terminal

 

$ java-version

OUTPUT 

java version “1.6.0″  Java(TM) SE Runtime Environment (build 1.6.0-b105)  Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

 

Just in case you want more java related packages here you go-

 

sun-java6-bin - binaries

sun-java6-demo - Demos and examples

sun-java6-doc - Documentation

sun-java6-source - JDK source files