Configure the development environment under Linux a bit of trouble, for the Novice Linux beginners, command use unfamiliar, the environment is hazy, today collated a bit of ubnutu14.04 under the steps of installing Eclipse, I hope to be useful to everyone. Nonsense not much to say, into the subject
Ubuntu system comes with OPENJDK, enter the Java-version command in the terminal, there will be some hints, this has no effect on the rear installation is mainly to let you know
1
# First download the JDK to http://www.oracle.com/technetwork/java/javase/downloads/, I downloaded the latest version jdk-8u20-linux-i586.tar.gz, download complete using the command
sudo tar zxvf jdk-8u20-linux-i586.tar.gz decompression
2
# then copy the extracted jdk1.8.0_20 folder into the/USR/LIB/JVM directory sudo cp-r ~/jdk1.8.0_20//usr/lib/jvm/
3
# Configure Environment variables
sudo gedit ~/.profile
At the end add:
Export JAVA_HOME=/USR/LIB/JVM/JDK1.8.0_20
Then save the shutdown, using the source update under
SOURCE ~/.profile
Use the ENV command to see the value of Java_home
Env
If java_home=/usr/lib/jvm/jdk1.8.0_20 is displayed, the configuration is successful.
4
# Modify the system default JDK as follows
sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk1.8.0_20/bin/java 300
sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.8.0_20/bin/javac 300
sudo update-alternatives--config java
sudo update-alternatives--config javac
5 View Java version information,
The terminal input java-version see the following information, indicating that the modified OK:
Java Version "1.8.0_20"
Java (TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot (TM) Client VM (build 25.20-b23, Mixed mode) 6 Ubuntu under Installation configuration eclipse
To the official website http://developer.android.com/sdk/index.html download Eclipse package adt-bundle-linux-x86-20140702.zip, download and unzip to the folder you want to put it. Unzip command Unzip Adt-bundle-linux-x86-20140702.zip I put it in/home/kingqi/adt directory. 7
Link the Eclipse execution file symbol to/usr/local/bin.
Cd/usr/local/bin
sudo ln-s/home/kingqi/adt/adt-bundle-linux-x86-20140702/eclipse/eclipse
OK, you're done, open the terminal and enter Eclipse to start.
Install eclipse under ubnutu14.04