Setting JAVA5_HOME environment variable on Mac OS 10.5.8?
How does one install set the JAVA5_HOME environment variable for Goog开发者_JS百科le Guava libraries on Mac OS 10.5.8?
Add the following line to the end of /etc/profile
(requires sudo
access):
export JAVA5_HOME=/System/Library/Frameworks/JavaVM.framework/Home
If you have open terminal windows, you'll probably need to close and reopen them for this change to take effect.
It should probably be set to:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
You can do this in your shell configuration file using something like:
export JAVA5_HOME='/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home'
精彩评论