Skip to main content
Post Closed as "Duplicate" by Kusalananda, Daniele Santi, user34720, Shadur-don't-feed-the-AI, Jeff Schaller
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

On my mac os 10.6.6 I'm trying to persist env variable $JAVA_HOME but it doesn't stick!

$ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Once I restart it won't be set anymore. The GUI way to do that is to use the Property List Editor as documented by Apple and on SOSO. However, after a restart:

$ echo $JAVA_HOME
    
$

On my mac os 10.6.6 I'm trying to persist env variable $JAVA_HOME but it doesn't stick!

$ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Once I restart it won't be set anymore. The GUI way to do that is to use the Property List Editor as documented by Apple and on SO. However, after a restart:

$ echo $JAVA_HOME
    
$

On my mac os 10.6.6 I'm trying to persist env variable $JAVA_HOME but it doesn't stick!

$ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Once I restart it won't be set anymore. The GUI way to do that is to use the Property List Editor as documented by Apple and on SO. However, after a restart:

$ echo $JAVA_HOME
    
$
Tweeted twitter.com/#!/StackUnix/status/44357467735470080
Source Link
simpatico
  • 631
  • 4
  • 9
  • 19

Why $JAVA_HOME does not persist on a mac?

On my mac os 10.6.6 I'm trying to persist env variable $JAVA_HOME but it doesn't stick!

$ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Once I restart it won't be set anymore. The GUI way to do that is to use the Property List Editor as documented by Apple and on SO. However, after a restart:

$ echo $JAVA_HOME
    
$