OracleJava installation

Hi,

I have created YAML file as under to install OracleJava, but somehow not working. Kindly advise.