Persistent CLASSPATH

Paul Howarth paul at city-fan.org
Fri Aug 19 16:15:17 UTC 2005


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.




More information about the fedora-list mailing list