Just ignore the previous post here is the latest update.
Just installed JDK 6u1 with NetBeans 5.5.1 from here
and tried the following
[root@localhost ~]# alternatives --config java
There are 2 programs which provide 'java'.
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
Enter to keep the current selection[+], or type selection number:
Do I need to delete any of these two at all?
I did install JRE separately previously and deleteted manually with rpm -e since JDK 6u1 with NetBeans 5.5.1 has got JRE built into it already.
I also changed the path as Java was not being compiled in the terminal at all. This is what I did, not sure if it is right thing to do, but it does now compile Java programs in the terminal as long as the pc is on.
This is another piece of info:
[root@localhost opt]# cd /opt/jdk1.6.0_01/bin
[root@localhost bin]# export PATH=/opt/jdk1.6.0_01/bin:$PATH
[root@localhost ~]# whereis netbeans
[root@localhost ~]# cd /opt
[root@localhost opt]# ls
jdk1.6.0_01 jre-6u1-linux-i586-rpm.bin netbeans-5.5.1
One thing here is strange, libjavaplugin_oji.so is flashing in a red background. Is it some kind of error that needs to be corrected? Looks like a broken link to me though.