Re: Trouble setting environment variables
On Thu, 2010-05-13 at 14:48 -0500, Boyd Stephen Smith Jr. wrote:
> On Thursday 13 May 2010 13:16:21 Jason Filippou wrote:
> > > You did log out and log back in, right? Your ".profile" is only read
> > > on login.
> >
> > I actually hadn't done that, and logging in again helped with the PATH
> > variable, but I still get nothing when echoing the value of CLASSPATH. I've
> > changed the .profile entry to
> >
> > CLASSPATH="/home/jason/code/java"
> >
> > and to
> >
> > CLASSPATH="/home/jason/code/java:"
> >
> > logging out and in again in botch cases, but I'm still not in luck =/
>
> Hrm, your .profile should be "source"d in your current shell, which means
> "export"ing it wouldn't be necessary. However, I would suggest "export"ing it
> as the first attempt at a work around.
What happens if you set it in /etc/environment instead? - John
Reply to: