Android Development under Ubuntu (ii): Android Development Environment Building

Source: Internet
Author: User
Tags java se

The Android development environment is built in two main steps: Installing the JDK and installing the integrated development environment.

First, install the JDK

Ubuntu system comes with OPENJDK, to develop Android or need to go to the official website download jdk (more than 1.6). The current system JDK version can be viewed through the java-version directive.

Download the latest Java SE development environment (JDK) to Oracle official website http://www.oracle.com/technetwork/java/javase/downloads/index.html What I'm downloading here is jdk-8u11-linux-x64. Copy the downloaded compressed package to the/home/kyo/java directory and unzip the directory/home/kyo/java/jdk1.8.0_11 (Kyo is my personal home directory name).

After obtaining the JDK, you can configure the environment variable, enter the command: sudo gedit/etc/environment, enter the following lines at the end of the file:

Export Java_home=/home/kyo/java/jdk1.8.0_11

Export JRE_HOME=/HOME/KYO/JAVA/JDK1.8.0_11/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JRE _home/lib

Input instruction: sudo gedit/etc/profile, enter the following lines at the end of the file (note before umask 022)

Export Java_home=/home/kyo/java/jdk1.8.0_11

Export JRE_HOME=/HOME/KYO/JAVA/JDK1.8.0_11/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JRE _home/lib

Export path= $PATH: $JAVA _home/bin: $JRE _home/bin: $HOME/bin

When entering java-version, you should see the following prompt:

Java Version "1.8.0_11"
Java (TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot (TM) 64-bit Server VM (build 25.11-b03, Mixed mode)

At this point the environment variable configuration OK, you can write a simple Java program test.

Second, install the Android integrated development environment, where the eclipse development environment is used.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.