Earlier I tried to install both i586 rpm and x86_64 rpm, but after installing i586, it didnt let me install X86, saying that conflict with the source. So I have to change the options again if I want to run 64 bit java apps in future?
here are the results:
/usr/sbin/alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
Enter to keep the current selection[+], or type selection number: 1
I didn't find jre-1.7.0_03-fcs.i586 in the options, though it shows its installed.
rpm -qa | grep jre
jre-1.7.0_03-fcs.i586
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_03/bin/java 2 , I don't know what that did either, it didn't add any entry to alternatives file in /usr/sbin or alternatives directory in /etc/
version of java:
java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.6 20110731 (Red Hat 4.4.6-3)
Also you said "If java 1.6 is required" , how would I know if its required? and java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.x86_64 package is installed, it won't help?
Thanks for your patience