Re: $PATH


Subject: Re: $PATH
From: Jim Gribbin (jewelrysupplier@gci.net)
Date: Thu Nov 28 2002 - 22:03:09 AKST


It looks like there are a couple of ways of doing it. I use .bash_rc on
my RedHat boxes. it looks like this:

[jgribbin@jimsajsws jgribbin]$ cat .bashrc
# .bashrc

export JAVA_HOME=/usr/java/j2sdk1.4.0_01
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

Afterwards I logged out then back in, re-running bash_profile would
probably work as well.

On Thu, 2002-11-28 at 12:32, The Fueley wrote:
> okay i installed this java sdk package. j2sdk1.4.1_01.rpm.bin all goes fine,
> except my path isnt updated. im editing the .bash_profile file. and when i
> run echo $PATH, the new updated path doesnt change. which java doesnt find it
> either am i doing this wrong? heres what it looks like.
> Chris Rivera
>
>
> -- Attached file included as plaintext by Listar --
> -- File: .bash_profile
>
> # .bash_profile
>
> # Get the aliases and functions
> if [ -f ~/.bashrc ]; then
> . ~/.bashrc
> fi
>
> # User specific environment and startup programs
>
> PATH=/usr/java/j2sdk1.4.1_01/bin$PATH:$HOME/bin:/usr/java/j2sdk1.4.1_01/bin
>
> export PATH
> unset USERNAME
>
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.

-- 
Jim Gribbin <jewelrysupplier@gci.net>
Anchorage Jewelry Supply

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Thu Nov 28 2002 - 22:01:42 AKST