Set Environment variable in bash shell

din1983

Registered
I am using Mac OS X 10.4 and i want to set an environment variable JAVA_HOME which points to directory /Application/Utilities/Java.

Please let me know how should I do that using export command.

Reply ASAP plz..

thanks

din
 
export JAVA_HOME=/Application/Utilities/Java

or you can JAVA_HOME=/Application/Utilities/Java into a .bashrc file in your home directory to ensure the variable is set when you open a terminal.
 
Back
Top