Installing Java in Ubuntu 10.10

Today I installed Ubuntu 10.10 in my system. While installation, I found the repository for Java has been changed. For the installation of Java, I have executed these instruction. I hope same will work for you.

Open your terminal and execute the following instruction.

For adding new repository

$ sudo add-apt-repository ppa:sun-java-community-team/sun-java6

Then to update repository

$ sudo apt-get update

And to install Java, following instruction is executed

$ sudo apt-get install sun-java6-jdk

(To accept the configuration window, press TAB key to move the control)

Another Method:

Ignorante has suggested (in comment)  another instruction  to install Java in Ubuntu 10.10. It is a single line instruction and it  worked very well in my system.

$ sudo apt-get install openjdk-6-jdk

thank you, ignorante.

Advertisements

2 Responses to Installing Java in Ubuntu 10.10

  1. ignorante says:

    You don’t need to add a repo, just use openjdk.

    sudo apt-get install openjdk-6-jdk

    It’s the same source, works perfectly ok with any java app. I use it with Eclipse, NetBeans, Maven, Tomcat, jdownloader, and many other apps.

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: