Possible Duplicate:
Setting JAVA_HOME environment variable
When you type "echo $JAVA_HOME" in Mac, where does Mac look to find the value of JAVA_HOME? In other words where does Mac save environment variables?
When you type "echo $JAVA_HOME" in Mac, where does Mac look to find the value of JAVA_HOME? In other words where does Mac save environment variables?
| ||||
feedback
|
This question came from our site for professional and enthusiast programmers.
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
|
A similar question/answer was posted on stackoverflow. The solution describes that you should create a ~/.profile and define the environment variables at this level. You can check out the Apple Reference Library on setting environment variables for additional information. | |||
|
feedback
|
|
Environment variables may be defined in all the usual places for a bash shell session. There is also an optional special file $HOME/.MacOSX/environment.plist which can contain environment variables for apps etc. | |||
|
feedback
|
|
Put this: | |||
|
feedback
|