[NTLUG:Discuss] PATH Questions
dmyhand at ednaisd.org
dmyhand at ednaisd.org
Thu Nov 2 05:04:40 CST 2006
Quoting Stephen Davidson <gorky at freenet.carleton.ca>:
> Dennis Myhand wrote:
> > I need to add Java to my path in my .bash_profile. Do I add the actual
> > binary as well as the directory or just the directory? What I have is:
> >
> > PATH=$PATH:/usr/bin: /usr/java/jdk1.5.0_09/bin/java
> >
> > Is this correct? The JDK is in /usr/java/jdk1.5.0_09
> >
> > Thanks, Dennis
> >
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
> >
> Hi Dennis.
>
> Be careful with the distro with Java. For some (like SuSE), if you link
> the /usr/lib/jvm (pre-10.0, I think), or /usr/lib/jvm/java to your Java
> Directory, than the login scripts in /etc/profile.d may pickup on the
> Java install and set the appropriate paths for you. This is a frequent
> occurrence if you use RPMs to install Java with. I would have a look in
> /etc/profile.d and see if there are any java scripts.
>
> Regards,
> Steve
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
Me no worry about distro! Me use Debian Etch! No worries, Me Happy!
More information about the Discuss
mailing list