update cookie and java versions