which java is giving "/usr/bin/java" but java -version is giving proper output! why?
we have E-business suite Multitude environment..
It is showing different version version on APP2 as below -
[applmgr@app2 ~]$ java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel-2.4.3.3.0.1.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
[applmgr@app2 ~]$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
[applmgr@app2 ~]$ which java
/usr/bin/java
[applmgr@app2 ~]$ which perl
/usr/bin/perl
[applmgr@app2 ~]$
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
While on the other node APP1 its showing properly.
[applmgr@-app1 ~]$ java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
[applmgr@-app1 ~]$
[applmgr@-app1 ~]$