Where to set environment variables

Darren Wheatley darren at tenjin.co.uk
Wed Oct 20 12:30:26 UTC 2004


Hi,

Can anyone tell me definitively where to put environment settings please?

I have installed the j2sdk from Sun, but need to alter my PATH to point 
to it.

I have tried adding the following to ~/.gcprofile, ~/.bash_profile, and 
~/.bashrc but nothing seems to set my path properly:

    export PATH=$PATH:/usr/local/java/bin

I need to be able to set environment variables for both shell users and 
server processes. Again, I tried /etc/profile for server environment 
variables but that didn't work either.

This is driving me nuts, so any help you can give would be appreciated.

Cheers

D.






More information about the ubuntu-users mailing list