Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>installing the proper java version(1.6) for android do the below</p> <p>1) Installing JDK</p> <p>Since Sun JDK is no longer in Ubuntu’s main package repository, we have to manually install it in ubuntu 12.04 from oracle website</p> <p>Please go the below link and download the JDK</p> <p><a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html" rel="nofollow">http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html</a></p> <p>Follow the below steps to install the java and configuring it for the usage</p> <pre><code>$ chmod +x jdk-6u33-linux-x64.bin $ sudo ./jdk-6u33-linux-x64.bin $ sudo mv jdk1.6.0_33 /usr/lib/jvm/ $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_33/bin/java 1 $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_33/bin/javac 1 $ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_33/bin/javaws 1 $ sudo update-alternatives --config java $ sudo update-alternatives --config javac $ sudo update-alternatives --config javaws </code></pre> <p>To verify the isntallation is proper do the belwo steps. It should now show that the Sun JDK is running instead of IcedTea</p> <pre><code>$ java -version java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode) </code></pre> <p>For compiling android on ubuntu 12.04 and installing the proper java version visit <a href="http://www.embeddedcircle.com/android-compilation-in-ubuntu-12-04-lts-precise-for-pandaboard/" rel="nofollow">http://www.embeddedcircle.com/android-compilation-in-ubuntu-12-04-lts-precise-for-pandaboard/</a></p> <p>thanks dino</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload