dan wrote:
dan wrote:
I'm on Fedora Core 4 OS...
e.g. export CLASSPATH=/home/username
results in a *temporary* CLASSPATH.
If I close the terminal window and
open a new one the command
echo $CLASSPATH results in no CLASSPATH(!)
The command env shows that there is no CLASSPATH env variable. I
guess I need to *add*
the env variable CLASSPATH for e.g. the username.
How do I do that?
Add the command to ~/.bash_profile
You will need to log out and back in again for this to take effect.
Paul.
Paul,
Add the command to ~/.bash_profile
I'm a newbie so I don't know how to that! My bash_profile
looks like this:
# Startup file for bash login shells.
#
default_dir=/usr/local/lib/
if [ -n "$PS1" ]; then
PS1='\u@\h(\#)\$ '
IGNOREEOF=3
fi
LOGIN_SHELL=true
# If the user has her own init file, then use that one, else use the
# canonical one.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
elif [ -f ${default_dir}Bashrc ]; then
. ${default_dir}Bashrc;
fi
Just use your favourite editor (e.g. gedit) to add this line to the end
of the file:
export CLASSPATH=/home/username
Paul.