Aaron Mulder on 2 Dec 2005 03:47:21 -0000


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

Re: [PLUG] Java troubles


Generally your options are to remove G*J (which I've always found to
be pretty crappy, but I'm a Java developer not a free software fanatic
:) or to put your Java installation at the *beginning* of the path. 
For example in your .bash_profile:

export JAVA_HOME=/usr/java/jre1.5.0_06
export PATH=$JAVA_HOME/bin:$PATH

(Note that a number of Java-based programs have startup scripts that
attempt to use JAVA_HOME in preference to the path.)

Aaron

On 12/1/05, Michael Lazin <microlaser@gmail.com> 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