Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

If I have an environment variable set up in windows xp, e.g. JAVA_HOME I can access this from cygwin. But if I change that environment variable through My Computer whilst cygwin is running, cygwin does not reflect the change. Is there anyway to get cygwin to update without having to restart it?

share|improve this question

For command line applications, they will not recognize new changes like path until you restart them. Likewise, you can have a desktop icon shortcut and a quick launch shortcut and these can have different settings. The main EXE will accept changes, but will need to be restarted.

share|improve this answer

No, but you can of course set it manually, using export JAVA_HOME=<whatever>. It's not like starting a new Cygwin shell takes a long time though ...

share|improve this answer
It doesn't take long, but then you have to navigate to the appropriate directory. And suppose you had three Cygwin windows open ... – Eric Wilson Oct 21 '11 at 19:39

If you export the variable, then you only need to restart the process.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .