I just installed RedHat and am trying to get it configured for java development. It has been a while since I had to install, but I recalled I needed to use Alternatives.

when I did a java -verison openjdk 1.6 was displayed as the default jre.

I dl'd and installed the latest Sun rpm 1.6.0_22, and I configured it as an alternative:

Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
+ 3 /usr/java/jdk1.6.0_22/bin/java

but when I execute:
java -version
nothing is display.

I setup sun javac as an alternative as well and doing a javac -version find the correct binary.

I changed the select java alternative back to openjdk, but java -version still does not work.

I am stumped. Anyone have any ideas?

As a secondary question, I found that the asterisk is the default, based on the priority. I cannot find the basis of what the priority should be. Is 1 high, or 90??

Thanks.