Build android development environment in ubuntu14.04 5-3: JDK installation, ubuntu14.04android

Source: Internet
Author: User

Build android development environment in ubuntu14.04 5-3: JDK installation, ubuntu14.04android

1. Download JDK

Download JDK7 from the oracle official website, but the latest JDK8 is not downloaded because it is used to downloading the new version, which is relatively stable.

Jdk download home: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Jdk7: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Select LINUX X64 as follows:

 


2. Decompress JDK

Sudo tar-zxvf jdk-7u67-linux-x64.tar.gz-C/usr/bin/android

3. JDK settings

Next, configure the JDK environment variable and modify the/etc/profile file (this configuration must be logged out and take effect)

1) open the file: sudo gedit/etc/profile

2) Add the following sentence at the end of the file:

Export JAVA_HOME =/usr/bin/android/jdk1.7 # modify the decompress path of your JDK
Export JRE_HOME = $ JAVA_HOME/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib
Export PATH = $ JAVA_HOME/bin: $ PATH


3) log out of the current user


4. JDK Testing

Open the terminal and enter the following test command

Java-version

The result is as follows, indicating that JDK is successfully installed.

Java version "1.7.0 _ 67"
Java (TM) SE Runtime Environment (build 1.7.0 _ 67-b01)
Java HotSpot (TM) 64-Bit Server VM (build 24.65-b04, mixed mode)






Set up the android Development Environment (Windows7 operating system + Myeclipse85 + JDK17 ).

It is best to use eclipse

In the first step of setting up the android development environment, in the java jdk, I don't know which win7 system should have a cut chart and a connection,

Send me to you
Links and images are swallowed up by Baidu.

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.