In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use Eclipse to build Android development environment under Linux. I hope you will get something after reading this article. Let's discuss it together.
Linux how to use Eclipse to build Android development environment installation, Java operating environment JDK (without this Eclipse can not run), I installed here is jdk-8u51-windows-i586, installation prompts, directly click on the next step, until finished.
Step one:
Install the Java runtime environment JDK (it won't run without this Eclipse). Here I install jdk-8u51-windows-i586. Follow the prompts during installation and click next until you are finished.
Step 2:
To verify whether you have installed the running environment of java correctly, you need to open the cmd command and type "java-version" in it.
Step 3:
Installation of android development environment: Eclipse I have a compressed package: eclipse-SDK-3.7.1-win32
Decompression and installation
Let's install JDK to this path: / usr/lib/jvm if we don't have this directory (of course not the first time), we'll create a new directory
Cd / usr/libsudo mkdir jvm
After the establishment, we went to the directory of the compressed package we just downloaded, unzipped it to the folder we just created, and changed the name to facilitate our management.
Sudo tar zxvf. / jdk-7-linux-i586.tar.gz-C / usr/lib/jvmcd/usr/lib/jvmsudomvjdk1.7.0_05/jdk7 configure environment variables
Gedit / .bashrc
Add at the end of the open file
ExportJAVA_HOME=/usr/lib/jvm/jdk7exportJRE_HOME=$ {JAVA_HOME} / jreexportCLASSPATH=.:$ {JAVA_HOME} / lib:$ {JRE_HOME} / libexportPATH=$ {JAVA_HOME} / bin:$PATH
Save the exit, and then enter the following command to make it effective source ~ / .bashrc
Configure default JDK
Because some Linux distributions already have default JDK, such as OpenJDK, and so on. So in order to make the JDK version we just installed become the default JDK version, we also need to make the following configuration. Execute the following command:
Sudo update-alternatives-install / usr/bin/java java / usr/lib/jvm/jdk7/bin/java 300sudo update-alternatives-install / usr/bin/javac javac / usr/lib/jvm/jdk7/bin/javac 300
Note: if the above two commands can not find the path problem, just restart the computer to repeat the above two lines of code will OK. Execute the following code to see the current JDK versions and configurations:
Sudo update-alternatives-config java has finished reading this article, I believe you have some understanding of "how to use Eclipse to build Android development environment under Linux". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.