To know where Java is installed,
In terminal type the below
/usr/libexec/java_home -v 1.7 [or]
Go to the .profile or .bash_profile found under Documents folder for each user and for example adding android path, type the below lines,
In terminal, type the below
echo $PATH
to confirm whether the path is listed there in environment variable.
Now close and restart the terminal and type the corresponding commands to check if it is working.
Reference:
http://stackoverflow.com/questions/5526470/trying-to-add-adb-to-path-variable-osx
http://stackoverflow.com/questions/15826202/where-is-java-7-installed-on-mac-os-x
In terminal type the below
/usr/libexec/java_home -v 1.7 [or]
sudo find / -name java
To set any new path to the existing classpath in Mac,Go to the .profile or .bash_profile found under Documents folder for each user and for example adding android path, type the below lines,
export PATH=${PATH}:<your-android-sdk-path>/platform-tools/
export PATH=${PATH}:<your-android-sdk-path>/tools
Save it. Close the file.In terminal, type the below
echo $PATH
to confirm whether the path is listed there in environment variable.
Now close and restart the terminal and type the corresponding commands to check if it is working.
Reference:
http://stackoverflow.com/questions/5526470/trying-to-add-adb-to-path-variable-osx
http://stackoverflow.com/questions/15826202/where-is-java-7-installed-on-mac-os-x
No comments:
Post a Comment