Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have tried multiple locations, but with no luck of finding where was it added:

  • .bashrc
  • .bash_profile
  • /etc/profile
  • /etc/environment
  • .profile

When I do echo $JDK_HOME, I get what I expect /usr/lib/jvm/java-6-sun/, but I am dying to know where is it located? (in case I'd like to change it)

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

export only stores that variable in RAM. The export keyword just tells your shell to copy that into the environment of any new programs that it runs.

If you want it to be permanent, add that line to the end of ~/.bashrc

share|improve this answer
    
Thank you for pointing that out! –  Blue Pony Inc. Oct 1 '11 at 6:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.