Reinstall the Ubuntu system and reinstall a set of Android development platforms with eclipse + jdk + SDK. install and configure the Eclipse environment. 1. Download the installation package Eclipse: JDK: jdk official download site, or directly download jdk-7u1-linux-i586.tar.gz to reinstall the Ubuntu system, reinstall an Android development platform with eclipse + jdk + SDK
1. install and configure the Eclipse Environment
1. Download the installation package
Eclipse:EclipseDownload the official website or directlyEclipse-jee-indigo-SR1-linux-gtk.tar.gz
JDK:JdkDownload the official website or directlyJdk-7u1-linux-i586 .tar.gz
SDK: SdkDownload the official website or directlyAndroid-sdk_r15-linux. tgz.
2. decompress the downloaded package
ExtractEclipse:Tar zxvf eclipse-java-indigo-SR1-linux-gtk.tar.gz
ExtractJDK:Tar zxvf jdk-7u1-linux-i586.tar.gz
Decompress SDK:Tar zxvf android-sdk_r15-linux.tgz
Move jdk1.7.0 _ 01 to the eclipse directory:Mv jdk1.7.0 _ 01 eclipse
3. Configure Eclipse and JDK Environment Variables
Sudo vi/etc/profile
Add at the end of the file:
JAVA_HOME =/home/yanggang/eclipse/jdk1.7.0 _ 01
Export JRE_HOME =/home/yanggang/eclipse/jdk1.7.0 _ 01/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH
4. Create a soft link for Quick Start
Cd ~ /Bin
Ln-s/home/yanggang/eclipse
Edit the. profile file of the current user (yanggang)
Vi/home/yanggang/. profile
Configure the environment variable PATH
# PATH =/home/yanggang/bin: $ PATH
# Export $ PATH
5. restart the system Ubuntu
Input:Java-version
If the java version information is displayed, the installation is successful!
Now you can start eclipse
Eclipse &
2. install and configure the Android Environment
1. Install the android development plug-in
(1) Open Eclipse and choose help> Install New SoftWare --> Add on the menu bar.
(2) enter the URL:Https://dl-ssl.google.com/android/eclipse/ (If an error occurs, change https to http.)
(3) one-way Next installation,Restart Eclipse
2. Configure the android sdk
(1) Click window> preferences to go to the following page: