James Cromwell was sentenced to jail for refusing to pay fines related to his arrest at a protest at a New York power plant.

A town judge in Wawayanda on Thursday sentenced the Oscar-nominated actor to seven dails in jail, the Times Herald-Record of Middletown reports.

Cromwell was among a group found guilty of obstructing traffic at a December 2015 sit-in at the site of a natural gas-fired power plant being built in Wawayanda. The protesters say the plant poses a threat to the environment.

Cromwell says he hopes that people can see the injustice of the jail sentence and that others may be inspired to join the pickets.

Cromwell lives in a neighboring town. He has appeared in more than 50 films, including "Babe" and "L.A. Confidential."

The Associated Press contributed to this report.