When someone says \"edit your .plist file\" or \"your .profile\" or \".bash_profile\" etc, this just confuses me. I have no idea where these files are, how to create them if
Unfortunately none of these answers solved the specific problem I had.
Here's a simple solution without having to mess with bash
. In my case, it was getting gradle
to work (for Android Studio
).
Btw, These steps relate to OSX (Mountain Lion 10.8.5)
Run the following command:
sudo nano /etc/paths
(or sudo vim /etc/paths
for vim)
Open a new terminal window then type:
echo $PATH
You should see the new path appended to the end of the PATH
I got these details from this post:
http://architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.UkED3rxPp3Q
I hope that can help someone else