Configuration of Java and Android development environment variables

Source: Internet
Author: User

1. Install oracle11g first, which automatically adds the configuration of the JDK used by Oracle to the environment variables.

2. Install the JDK and then the JDK configuration to ensure that the environment variable configuration of the Jdk7 must precede the configuration of Oracle.

Install the JDK and JRE to the default path, and then configure the environment variable

JAVA_HOME:JDK Path

PATH:%java_home%\bin; %java_home%\jre\bin;

CLASSPATH:.; %java_home%\lib;%java_home%\lib\tools.jar

When you are finished, test in the console: java–version

Javac-version

3. Android configuration

Unzip the Android ADT bundle to D:\ Directory. Then configure:

android_home:d:\adt-bundle-windows-x86-20140702;

PATH:%android_home%\sdk\tools;%android_home%\sdk\platform-tools;

The following configuration is used to modify the location of the AvD file

Android_sdk_home:d:\android\avd

4. MAVEN Configuration

(1) Environment variables

maven_home:d:\apache-maven-3.3.1
MAVEN:%maven_home%\bin
(optional) Maven_opts:-xms256m-xmx512m

PATH:%maven%;

(2) Maven configuration file settings.xml Please copy one to D:\apache-maven-3.3.1\conf, replace the original settings.xml (this new is mainly to add the configuration, please note the IP address, Please modify it according to the specific location of the ATM)

With Nexus Agent Maven's central repository, the Setting.xml configuration file is modified as follows:

<Mirrors>
<Mirror>
<ID>Nexus</ID>
<mirrorof>*</mirrorof>
<name>Nexus Mirror</name>
<URL>/ httpAddress: 8081/nexus/content/groups/public</url>
</Mirror>
</Mirrors>

<Profiles>
< Profile>
<ID>Nexus</ID>
<repositories>
<Repository>
<ID>Central</ID>
<URL>Http://central</URL>
<releases><enabled>True</enabled></releases>
<Snapshots><enabled>True</enabled></Snapshots>
</Repository>
</repositories>
<pluginrepositories>
<pluginrepository>
<ID>Central</ID>
<URL>Http://central</URL>
<releases><enabled>True</enabled></releases>
<Snapshots><enabled>True</enabled></Snapshots>
</pluginrepository>
</pluginrepositories>
</ Profile>
</Profiles>
<Activeprofiles>
<Activeprofile>Nexus</Activeprofile>
</Activeprofiles>

Configuration of Java and Android development environment variables

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.