Configuration of Mac Pro environment variables (when the. bash_profile file does not exist)

Source: Internet
Author: User

By the way: the path of the Java SDK under MAC. (For example, when using jertbrains to develop Android programs, you must configure the jsdk path)

PM

The Apple system already contains the complete j2se, including JDK and JVM (Apple's Vm ).

If you want to develop code in a MAC system. You can install an IDE (netbeans, eclipse, and so on) without installing JDK and JVM. You can download the SDK and install it on your Mac, and configure the path. If you want to upgrade JDK, you must download and install it yourself.

In MAC systems, the JDK installation path is different from that in Windows. The default directory is/system/libray/frameworks/JavaVM. framwork /.

There is a versions directory under this Directory, which contains different JDK versions.

Http://blog.csdn.net/hsyj_0001/article/details/5403939 #

The solution is found on the English website.

 

1. Start terminal Terminal

2. Enter the Home Directory of the current user.

Input Cd ~

3. Create. bash_profile

Enter touch. bash_profile

4. Edit the. bash_profile file.

Enter open-E. bash_profile

To build an android development environment, enter the tools directory under Android SDK: Export path =$ {path}:/Eclipse/android_sdk/tools

5. Save the file and close. bash_profile.

6. Update the environment variable Just configured

Enter source. bash_profile

7. Verify that the configuration is successful

Enter android to start Android SDK and AVD Manager

8: The operation is as follows:

NOTE: With the upgrade of Android, the android and ADB commands are placed in different directories... In this case, you need to configure multiple paths as follows:

Modify the content of the. project_profile file

Export path =$ {path}:/WF/ProgramFiles/Android/tools $
Export path =$ {path}:/WF/ProgramFiles/Android/platform-Tools

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.