updated solr script to check if java already installed