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