Sheehan Alam Sheehan Alam - 2 months ago 13
Bash Question

How can I permanently add a class path to my Mac terminal?

I want to set my path permanently for the following directory:

/Users/syalam/Library/android-sdk-mac_86/platform-tools


Not sure how to do it from the terminal. I tried:

export PATH=$PATH:/Users/syalam/Library/android-sdk-mac_86/platform-tools


but it only works temporarily. After I close my shell it no longer exists.

fge fge
Answer

Just add this entry to your CLASSPATH environment variable in your .bashrc:

export CLASSPATH="/Users/syalam/Library/android-sdk-mac_86/platform-tools:$CLASSPATH"
Comments