Results 1 to 1 of 1
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 ...
- 11-23-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 4
Problems with installing Sun JDK
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.


Reply With Quote