Thursday, February 3, 2011

Sun-Java-JDK-Install on Ubuntu 10.10

JDK install On Ubuntu 10.10

Face any problem to install sun-java sdk on ubuntu 10.10 or any other version. This is for you.. Hope this may help you to resolve your problem.
Lets start, what we are doing? We are trying to install sun-java-sdk on ubuntu. At first  you have to see , have any source package  list added on /etc/apt/sources.list.If not so , you have to add source package list  on /etc/apt/sources.list. To  do so give the following command from your terminal.


sudo gedit /etc/apt/sources.list.d/sun-java-community-team-sun-java6-maverick.list 
Add following two lines 

deb http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu maverick main
deb-src http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu maverick main

  
Now you add  another source list by following command from terminal.


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

You have to update your computer by following command


sudo apt-get update

Now your computer is ready for install java-sdk6. For install give the following command from command prompt . this may require your root password if you don't have administrative privilege.


sudo apt-get install sun-java6
  This will install sun-java6 on your system. If face any problem try to fix broken package by command  dpkg -i


After fixing broken package try to install sun-java6  again. If again you facing problem then try it another way. In this way goto System->Administration->Synaptic Package Manager

Search JDK from Quick Search  and Mark for Installation on sun-java-jdk, sun-java-jre, sun-java-bin.  and then apply.

I hope in this step you have no trouble to do it.

1 comment:

  1. Thx a lot! It worked fine, only that I did have to do the following modification:

    sudo apt-get install sun-java6*

    Greetings

    ReplyDelete