Added function to install java