Build Java and Android development environment on the simplest Ubuntu in history

Source: Internet
Author: User

Build your Java environment and Android environment under Ubuntu:

1. To build the Java environment, please refer to him: Building Java Environment steps


2. After the Java environment is set up, download (sdk+adt+eclipse), link address: include (adt+sdk+eclipse)

Download finished, just unzip.

Recommended look: Domestic Sdk+eclipse+adt


3. Configuration. BASHRC:

sudo gedit. BASHRC (executed under your user's home directory)

Export java_home=/xx/android/jdk1.7 (JDK installation directory)
Export JRE_HOME=${JAVA_HOME}/JRE
Export ANDROID_HOME=/XX/ANDROID/SDK (the directory where the SDK is located)
Export Class_path=.:${java_home}/lib;
Export Path=~/bin:${java_home}/bin:${android_home}/platform-tools:${android_home}/tools:: $PATH


4. After the configuration is finished, execute the source. BASHRC

Execute Javac under the command

Java

Android-v (open does not need to update, close on OK, just to verify)

Print out a lot of information to show that the installation was successful!


5. You're going to get excited about this. Open eclipse, there may be an error:A java RunTime Environment (JRE) or Java development Kit (JDK) must be available in or Der to run Eclipse. No Java Virtual machine is found after searching the following locations: ...

Workaround: Click to open the solution


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Build Java and Android development environment on the simplest Ubuntu in history

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.