Hello, I am running FC6 and having problems with Java. I previously installed jdk6 but must not have done it properly, so I am trying to do it again.
I am in su - mode. I downloaded jdk-6-linux-i586-rpm.bin and put it in /opt/ Then I did these commands
cd /opt
chmod +x jdk-6-linux-i586-rpm.bin
./jdk-6-linux-i586-rpm.bin
Then:
[root@localhost opt]# rpm -iv jdk-6-linux-i586.rpm
Preparing packages for installation...
package jdk-1.6.0-fcs is already installed
[root@localhost opt]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost opt]#
So, I don't know what is wrong. It says that 1.6.0 is already installed, but it is using 1.4..2.
I would like to uninstall all versions of Java on my machine and just start from scratch with a clean install of java 6. But I don't know how to do that.
Will you help me?
Thanks.