Fixed the shell script and added java to dockerfile