Switched to the older java cookbook (as the current version isn't working).