On 0, Crispin Wellington <crispin@aeonline.net> wrote: > Just installed the java runtime in /usr/local/j2re1.4.0_01 > Now I want to add /usr/local/j2re1.4.0_01/bin to my PATH but I cant seem > to do it. > In /etc/login.defs I changed > > ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > > to > > ENV_PATH > PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/j2re1.4.0_0 > 1/bin > > Logged in, but that didn't work. I tried > > export PATH=$PATH:/usr/local/j2re1.4.0_01/bin > > At the end of my ~/.bashrc, logged in, but that didn't work, either. > > So if I could ask two questions... > > 1) How should I add a path to PATH so it is available to all users > system wide? Add it to the PATH string in /etc/profile. > 2) How should I add a path to PATH for only one user? Add it to the PATH string in ~/.bash_profile. Both of these should work. If not, 'echo $PATH' to make sure that the path is being set, then 'file /usr/local/j2re1.4.0_01/bin/java' to make sure that the jvm is really there. Tom -- Tom Cook Information Technology Services, The University of Adelaide "My advice to you is to get married: If you find a good wife, you will be happy; if not, you will become a philosopher." - Socrates Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au
Attachment:
pgpB0pz6jDA7I.pgp
Description: PGP signature