Saturday, June 20, 2009

UBUNTU setting up environment variables.

Use file /etc/bash.bashrc to setup new environment variables.


Do not use: /etc/profile
Do not use: /etc/environment file might work too.

Procedure:

1. Edit: /etc/bash.bashrc
2. Add this line to the end of the file. This sets JAVA_HOME

export JAVA_HOME=/usr/lib/j2sdk1.5-sun/

No comments: