I tried. no success
java.sh file is like you wrote and with same permissions (same content, paths)
rpm -qa command gives: jre-1.6.0-fcs.i586
but java -version still gives: java version "1.4.2_05"
I am almost sure that I didnt show the correct path in this line:
root@ser1 [~]# /usr/sbin/alternatives --install /usr/bin/java java /usr/lib/jvm/jre-1.4.2-gcj/bin/java 1
The reason: I see no "jre-1.4.2-gcj" folder under "/usr/lib/jvm". In fact I have nothing within that folder (nofolder and no files at all - empty)
So I tried and changed that path with the one showing currently when "which java" command ran:
But same result - java version "1.4.2_05"
What path should I fill in there? Bare with me, a beginner afteral. Thanks for your help.