j2sdk path in $PATH twice? WTF?

From: Ivan Marsh (annoyed_at_you.now)
Date: 10/20/04


Date: Wed, 20 Oct 2004 12:21:40 -0500

Hey Folks,

Just ran into an annoying problem I can't figure out.

I installed the SUN Java 2 SDK RPM (j2sdk1.4.2_06.rpm) under RedHat 8.

I created /etc/profile.d/java.sh that includes the lines:

export JAVA_HOME="/usr/java/j2sdk1.4.2_06"
export JAVA_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME/bin"

Now when I login I've got the path to $JAVA_HOME/bin in my $PATH twice.

If I remove java.sh It's not in my $PATH at all.

Though this doesn't effect java, I can't figure out why it's ending up in
the path twice.

Any ideas? Are these the correct lines in the java.sh?

-- 
i.m.
The USA Patriot Act is the most unpatriotic act in American history.


Relevant Pages

  • j2sdk path in $PATH twice? WTF?
    ... Just ran into an annoying problem I can't figure out. ... Now when I login I've got the path to $JAVA_HOME/bin in my $PATH twice. ... The USA Patriot Act is the most unpatriotic act in American history. ...
    (alt.linux)
  • j2sdk path in $PATH twice? WTF?
    ... Just ran into an annoying problem I can't figure out. ... Now when I login I've got the path to $JAVA_HOME/bin in my $PATH twice. ... The USA Patriot Act is the most unpatriotic act in American history. ...
    (alt.os.linux)
  • j2sdk path in $PATH twice? WTF?
    ... Just ran into an annoying problem I can't figure out. ... Now when I login I've got the path to $JAVA_HOME/bin in my $PATH twice. ... The USA Patriot Act is the most unpatriotic act in American history. ...
    (linux.redhat)