Home > Gado Gado > How To Install JRE and JDK on Ubuntu Natty 11.04

How To Install JRE and JDK on Ubuntu Natty 11.04

Java

Java

Method 1

From canonical partners repository
Go to Ubuntu Software Center then choose edit then click Software sources now you need to click on other software then select canonical partners,canonical partners (Source code) click ok. Then

Now this will ask for source list update after this you can install the following packages from your command line

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

Method 2

Open the terminal and run the following commands

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

If you want to install JDK use the following command

sudo apt-get install sun-java6-jdk

Testing Java Runtime Environment

You’ll want to confirm that your system is configured properly for Sun’s JRE. Check that the JRE is properly installed by running the following command from a terminal.

java -version
Advertisement
Categories: Gado Gado

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.