update java cookbook to latest release

The old version fails when downloading oracle jdk