Unable to open bash profile on OSX -
i unable open bash profile. had set java , android path opening. when run echo $path displaying paths correctly. need add path bash profile.
could please me?
your $path
wrong :
/library/java/javavirtualmachines/jdk1.8.0_45.jdk/contents/home/bin:/users/qsgtechnologies/library/android/sdk/platform-tools:/users/qsgtechnologies/library/android/sdk/tools
this doesn't use standard default path, and, unless totally intentional, recommend not this.
you've got fix running (note /bin:/usr/bin:
):
export path=/bin:/usr/bin:/library/java/javavirtualmachines/jdk1.8.0_45.jdk/contents/home/bin:/users/qsgtechnologies/library/android/sdk/platform-tools:/users/qsgtechnologies/library/android/sdk/tools:
the next time, sure use syntax:
export path=$path/yournewpath:
since removed /bin:/usr/bin:
unable change bash profile because bash wasn't able locate executables.
fitting needs, here's current bash_profile
:
export java_home=$(/usr/libexec/java_home) export android_home=/users/qsgtechnologies/library/android/sdk export path=$java_home/bin:/usr/bin:$android_home/platform-tools:$android_home/tools
change (note yournewentry
placeholder value need)
export java_home=$(/usr/libexec/java_home) export android_home=/users/qsgtechnologies/library/android/sdk export path=$java_home/bin:$android_home/platform-tools:$android_home/tools:/yournewentry
then apply changes:
source ~/.bash_profile
Comments
Post a Comment