Installation of ubuntu14.04 under the Android development environment 5-2:JDK

Source: Internet
Author: User

One JDK download

Download JDK7 from Oracle official website, not download the latest JDK8, because the habit of downloading the new version, 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

The Linux X64 version is selected as follows:



Two JDK decompression

sudo tar-zxvf jdk-7u67-linux-x64.tar.gz-c/usr/bin/android

Three JDK settings

Next configure the JDK environment variables, modify the/etc/profile file (this configuration requires the logoff of the user to take effect)

1) Open file: sudo gedit/etc/profile

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

Export java_home=/usr/bin/android/jdk1.7 #修改为你自己的JDK解压路径
Export Jre_home= $JAVA _home/jre
Export classpath=.: $JAVA _home/lib: $JRE _home/lib
Export path= $JAVA _home/bin: $PATH


3) Log off the current user


Four JDK test

Open Terminal, enter the following test command

Java-version

The results shown below indicate that the JDK installation was successful

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)





Installation of ubuntu14.04 under the Android development environment 5-2:JDK

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.