A man died after a violent confrontation in an Essex forest, a court has heard.