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