Setting Java_Home Environment on MAC OS X
Setting Java_Home Environment variable for Appium on MAC OS X
- Open the Bash Profile to Edit it
- In the bash_profile add the following line: "export JAVA_HOME=$(/usr/libexec/java_home)"
- Save the changes
- Open CMD and Type : $ source ~/.bash_profile
- Verify if JAVA Home environment is set up on Mac by typing : $ echo $JAVA_HOME
- If it's properly installed you will get something like below image:
.bash_profile should be like this:
export JAVA_HOME=$(/usr/libexec/java_home)
export ANDROID_SDK_HOME=~/Library/Android/sdk
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME:$ANDROID_SDK_HOME/emulator:$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools/bin
Comments
Post a Comment