added Java binary check

script now checks if Java is installed, otherwise halts execution