Development Environment configuration details, Development Environment details

Source: Internet
Author: User

Development Environment configuration details, Development Environment details

To configure JDK environment variables, follow these steps:

1. My computer --> properties --> advanced --> environment variables.

2. configure system variables (S ):

A. Create JAVA_HOME

C: \ Program Files \ Java \ j2sdk1.5.0 (JDK installation path)

B. Separate them with the path.

% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin

C. Create a user variable CLASSPATH

.; % JAVA_HOME % \ lib \ tools. jar

3. test whether the environment variable configuration is successful:

Start --> Run --> CMD

Press on the keyboard: JAVAC JAVA

The corresponding command appears, rather than the error message, indicating that the configuration is successful!

Or enter Java-version to check whether the version is consistent.

Adb environment Configuration

Win7 system, adb file path: D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools, android File Location: D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ tools (your own sdk installation path)

1. Right-click the computer and choose advanced system Settings> environment variable> system variable center creation.

2. create the name adb (based on your naming conventions) and enter your adb location in the variable: D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools; D: \ Program Files \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools, click OK, save.

3. Find the Path variable in the system variable, click Edit, add "; % adb %" at the end, and save the modification.

4. Open the cmd window and enter adb. All adb commands are displayed.

When the adb port is occupied

1. Configure the adbserver port by yourself and use an uncommon value. (In the future, the adb port is the modified port number)

1. Define the ANDROID_ADB_SERVER_PORT value in the system environment variable. It is best to select a 5-digit port number (10000 ~ 65535.

2. In win, you need to add an ANDROID_ADB_SERVER_PORT to the environment variable. Set the value to the custom port.

3. in linux, export port $ ANDROID_ADB_SERVER_PORT = custom port.

2. Temporarily modify environment variables.

In Windows, enter "set ANDROID_ADB_SERVER_PORT = 54321" in cmd.

In linux, enter: export ANDROID_ADB_SERVER_PORT = 54321


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.