[NTLUG:Discuss] PATH Questions
Stephen Davidson
gorky at freenet.carleton.ca
Wed Nov 1 20:37:57 CST 2006
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
More information about the Discuss
mailing list