how to do java installation in Linux(Ubuntu)

Viewed 7238

I want to build Android kk 4.4 and I followed google's instructions but it keeps give me a Java 1.6.0_24 version:

java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

I tried this:

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

But I couldn't get the 1.6.0_26 version and I need it in order to build the full android.

How can I install the needed version using apt-get?!

3 Answers
Related