Install Java

Before you download and install the Android SDK, you need to install the proper dependencies. Start by installing a Java Runtime Environment (JRE) or Java Virtual Machine (JVM).

If you are running a 64-bit version of Ubuntu on your machine, you must first install the ia32-libs library from the Ubuntu repositories. This is a set of 32-bit runtime libraries configured for use on a 64-bit system that enables you to develop and test your 32-bit Android programs while using your 64-bit operating system.

You are free to choose either the open-source Open JDK version, openjdk-6-jre, or the Sun/Oracle version, sun-java6-jre, from the Ubuntu repositories. You must also install the appropriate matching Java SDK, either openjdk-6-jdk or sun-java6-jdk ...

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.