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.