add java get version function
install tomcat 7 and 8