Problem installing JAVA on redhat
Hello,
Could someone please help me to configure my Java-version on redhat!
java -version returns the old version and I'm not able to migrate to new version ("1.6.0_11") already installed:
# java -version
java version "1.4.2"
However:
# /usr/java/jdk1.6.0_11/bin/java -version
java version "1.6.0_11"
Please see bellow for more details!
Thanks in advance
echo 2 | sudo /usr/sbin/alternatives --config java
There is 1 program that provides 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
Enter to keep the current selection[+], or type selection number:
There is 1 program that provides 'java'.
-------------------------------------------------------------
# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
----------------------------------------------------------------------
# /usr/java/jdk1.6.0_11/bin/java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
|