Mattison, Jacob on 22 Apr 2005 16:47:36 -0000 |
> -----Original Message----- > From: plug-bounces@lists.phillylinux.org > [mailto:plug-bounces@lists.phillylinux.org] On Behalf Of Carl Husa > Sent: Friday, April 22, 2005 12:41 PM > To: plug@lists.phillylinux.org > Subject: [PLUG] Tomcat, Cocoon update > > Okay, added /usr/java/jdk1.5.0_02 to .bashrc with > PATH="/usr/java/jdk1.5.0_02" > > First things, my PATH statement was the only PATH line in .bashrc > > Logged out, logged back in, when I run java - version, > message that says java is an unknown command. > > Edited .bashrc, removed the previous PATH statement, and I > get the old 1.4 messages. > > Heh, heh..what fun! First, the PATH you set for Java should be to the bin directory, not the top level directory. Second, you should use PATH="$PATH:/usr/java/etc/bin" so that you keep any path set elsewhere. Except in this case you want PATH="/usr/java/etc:$PATH" so the version of java you want is first. Third, PATH stuff is probably set in your .bash_profile, not .bashrc. Try "grep PATH .*" or something similar. Jacob ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|