Just ignore the previous post here is the latest update.
Just installed JDK 6u1 with NetBeans 5.5.1 from here
http://java.sun.com/javase/downloads/index.jsp
and tried the following
Code:[root@localhost ~]# alternatives --config java There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java 2 /pathto/sunjava/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:Code:[root@localhost opt]# cd /opt/jdk1.6.0_01/bin [root@localhost bin]# export PATH=/opt/jdk1.6.0_01/bin:$PATH
Code:[root@localhost ~]# whereis netbeans netbeans: /opt/netbeans-5.5.1/bin/netbeans [root@localhost ~]# cd /opt [root@localhost opt]# ls jdk1.6.0_01 jre-6u1-linux-i586-rpm.bin netbeans-5.5.1 jre-6u1-linux-i586.rpm libjavaplugin_oji.so [root@localhost opt]#
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.
Thanks...


Reply With Quote
).

Bookmarks