I have set java_home on my mac, by putting export JAVA_HOME=/System/Library/Frameworks/JavaVM.frameworks/Home
to my ~/.profile file
. I quit the terminal and ran it again.
But when I typed echo $JAVA_HOME
and pressed Enter it shows JAVA_HOME=/System/Library/Frameworks/JavaVM.frameworks/Version/1.6.0_22/Home
which is not the right one. How can I fix this problem & change this ?
/System/Library/Frameworks/JavaVM.frameworks/
and openHome
to see if it's an alias. Command-click the folder name in the title bar to see the full path. If it's/System/Library/Frameworks/JavaVM.frameworks/Version/1.6.0_22/Home
, the alias was simply resolved.