How to check RA agent JAVA version on Linux Machine.

Document ID : KB000098124
Last Modified Date : 25/05/2018
Show Technical Document Details
Question:
RA Agent installed on Linux Operating system . The operating system Already has JAVA version installed. RA Agent comes with inbuilt JAVA version  . How to check which JAVA version RA agent is using on Linux machine.  
Answer:
On RA Agent Linux machine , Make sure you are in directory path. 

[root@TestMachineN227640 jre]# pwd
/opt/CA/ReleaseAutomationServer/NolioAgent/jre

Execute Command : 

[root@TestMachineN227640 jre]# bin/java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

Please see the same in below screenshot. 
User-added image
If we execute Java -Version command directly , it will show OS used JAVA Version as below 

[root@TestMachineN227640 jre]# java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Please see the same in below Screenshot. 

User-added image