Java Install gone Awry

I have Java 1.4.2 installed on my system. I’m trying to upgrade to Java 6. Once I installed it, it only points to the old configuration.

[root@localhost ~]# /usr/sbin/update-alternatives --display java
java - status is auto.
 link currently points to /usr/lib/jvm/jre-1.4.2-gcj/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
 slave jre: /usr/lib/jvm/jre-1.4.2-gcj
 slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
 slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.

[root@localhost ~]#  whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java

[root@localhost ~]# whereis javac
javac: /usr/bin/javac

Any tips on where to start fixing the configuration? I know this isn’t a Java install forum, but I don’t really know a ton of people who are Java-savy.

:slight_smile: Thanks.