What punishment did they give the killer of John F. Kennedy?

He was assassinated while being escorted into a courthouse, so he never received a sentence.