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