refactor:

java_version=`java -version 2>&1 | xxxxxx| cut xxxxx`
if [ ${java_version} != "1.7.0_45" ]