# Java Install gone Awry

**URL:** <https://forum.kirupa.com/t/java-install-gone-awry/278340>\
**Category:** programming\
**Created:** [December 27, 2008, 10:52pm UTC](https://forum.kirupa.com/t/java-install-gone-awry/278340 "2008-12-27T22:52:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenBart](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Post date:** [December 27, 2008, 10:52pm UTC](https://forum.kirupa.com/t/java-install-gone-awry/278340/1 "2008-12-27T22:52:26Z")

</div>

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.

```auto
[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.

🙂 Thanks.
