Andrew Libby on 2 Dec 2005 03:45:22 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Java troubles


Hi Michael,

There are a variety of method for dealing with this.  The easiest of
which is
to reorder your path, rather than removing /usr/bin.  There are many useful
programs in /usr/bin that you'll be annoyed at not having in  your path
if you
remove it.

An easy way is probably to assign and export the PATH variable in your
.bash_profile
or .bashrc.

PATH=/usr/java/jre1.5.0_06/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/java/jre1.5.0_06/bin:/home/michael/bin:/usr/java/jre1.5.0_06/bin:/usr/sbin:/sbin
export PATH

Then you can either logout/ back in or type

. ~/.bash_profile
(or . ~/.bashrc if you edited that).

>From there you'll probably get the correct version of Java.

You setting up a java app, or dabbling in development?

Good luck Michael.

Andy


Michael Lazin wrote:

> I recently installed Sun's JRE, and set the path in .bash_profile. 
> Whenever I try to execute java it executes /usr/bin/java, GIJ, which I
> do not want.  When I type "echo $PATH" I get the following output:
>
> /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/java/jre1.5.0_06/bin:/home/michael/bin:/usr/java/jre1.5.0_06/bin:/usr/sbin:/sbin:/usr/java/jre1.5.0_06/bin
>
> Do I need to remove /usr/bin from the path?  If so, how do I do it?  I
> tried removing GIJ with no luck.  Any clues on how to deal with this
> conflict?
>
> Thanks,
>
> Michael
>
>------------------------------------------------------------------------
>
>___________________________________________________________________________
>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
>  
>

___________________________________________________________________________
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