Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing sun-java6-jdk on ubuntu 10.04 64 bit os

Tags:

java

android

I am trying to setup build enviroment for android on my ubunt10.04 machine. For that i want to install sun-java6-jdk as mentioned in source.andoid.com .

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

$ sudo apt-get update

$ sudo apt-get install sun-java6-jdk

But now I am getting the error as no package for sun-java6-jdk.

so I want to know how to install suitable jdk for android build set up.

like image 637
dead programmer Avatar asked Mar 29 '12 01:03

dead programmer


2 Answers

you could install sun jdk for Ubuntu 10.04 in the same way as 10.10. The steps for installing java in 10.10 is described in http://java.dzone.com/articles/sun-java-6-ubuntu-1004-1010

here's the steps of installing sun jdk, taken from that article:

add-apt-repository ppa:sun-java-community-team/sun-java6
apt-get update
apt-get install sun-java6-jdk
update-java-alternatives -s java-6-sun

in case the repository mentioned above not available anymore, here is a manual-ish alternative in installing JDK: http://codingforme.wordpress.com/2012/05/14/installing-oracle-java-jdk-6-or-7-on-ubuntu-12-04/

like image 200
Riza Avatar answered Oct 22 '22 11:10

Riza


Sun JDK was dropped from Ubuntu due to licensing nonsense: http://news.softpedia.com/news/Canonical-Will-Remove-Java-From-Ubuntu-241147.shtml . Use openjdk instead.

Although there is a ppa here https://launchpad.net/~sun-java-community-team/+archive/sun-java6 that lets you install the SunJDK, it's very out-of-date and looks abandoned.

like image 29
artbristol Avatar answered Oct 22 '22 12:10

artbristol