Upgrade java cookbook