Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.