Java Version check error in dxc-install.sh

Document ID : KB000112377
Last Modified Date : 02/11/2018
Show Technical Document Details
Question:
"dxc-install.sh" has exited by Java version check errpr. 
# ./dxc-install.sh 
Step 1: Checking java version 
...found java executable in /opt/APM/Introscope10.7.0.45/EM/jre 
...require java version 1.8 or higher 

However, the version of java set in the environment variable JAVA_HOME is "1.8.0_112".
Environment:
CA Experience Collector, CA Experience Collector 2.4.
Answer:
In line 46 of "dxc - install.sh", the java command is not running in the current directory.
Please correct this line as follows.
-------------dxc-install.sh-------------------------------------- 
46 LINE 
_jstr=$(java -version 2>&1 | awk -F '"' '/version/ { print $2 }') 
--- >
_jstr=$(./java -version 2>&1 | awk -F '"' '/version/ { print $2 }') 
----------------------------------------------------------------
It will be fixed in future version.