while installing java in redhat i'm facing some problems..i've attached the screen print ..if anyone could help me with it it would be appreciable..thank u.. i unzipped the file using tar command .once i created the softlink for it ,i should be able to see java version and all but which in this case i'm not able to see .. please need help here..
java installation in RHEL
rhel;java
You might have extracted the jdk-7-linux-x64.tar.gz file to the jdk directory. Now, inside this directory, you will find a directory called bin. And the java binary would resides at this location.So, add the below lines to the file ~/.bash_profile file with the logged in user (in our current scenario abhishek).export JAVA_HOME=$HOME/Desktop/jdk    export PATH=$JAVA_HOME/bin:$PATHSave the file and run the below command at the command prompt.   $ cd $ . .bash_profileNow, run the below commands for knowing where from the java is being picked$ which java$ java -version