Mr. Simpson apologized repeatedly for the trouble he had caused while restating his belief that the items he had sought in the hotel room were rightfully his. They included trophies and family photos that he said were stolen years ago from his Los Angeles home and had ended up in the possession of the collectibles dealers, Bruce L. Fromong and Alfred Beardsley.

“I didn’t want to hurt anybody,” Mr. Simpson insisted. “I didn’t know I was doing anything wrong.”

In remarks leading up to the sentencing, Judge Glass repeatedly insisted that neither she nor the jury had been influenced by the 1995 trial in which a Los Angeles jury acquitted Mr. Simpson in the murders of his former wife Nicole Brown Simpson, and her friend Ronald L. Goldman.

Image O. J. Simpson offered apologies Friday in Las Vegas and was sentenced for 12 felonies. Credit... Pool photograph by Isaac Brekken

“That doesn’t matter to me; I want that to be perfectly clear to everyone,” she said, explaining that she gave Mr. Stewart a shorter sentence because she felt he was less culpable.

A hearing to determine in which Nevada prison Mr. Simpson, 61, will serve his sentence will be held in coming weeks. Earlier Friday, Judge Glass denied a defense motion that he be allowed to remain free pending appeal.

The prosecutor, District Attorney David Roger, said he did not think Mr. Simpson would be isolated from the rest of the prison population, and Mr. Simpson’s lawyer Gabriel Grasso indicated that he had not been separated from other inmates in the Clark County Detention Center. He has been held there since he was convicted on Oct. 3, exactly 13 years after his acquittal in the killings of Ms. Simpson and Mr. Goldman. Mr. Simpson has become popular among his fellow jail inmates, Mr. Grasso said, because he buys candy for them with his own commissary money.

Neither Mr. Fromong nor Mr. Beardsley attended the sentencing. Mr. Goldman’s father and sister did, though, and said they were pleased by the outcome.