CROWN POINT, Ind. – An Indiana high school student who graduated early, completed his training to become a U.S. Marine, and flew back for graduation this week was banned by school officials from walking across the stage to receive his diploma.

Crown Point High School officials refused to allow graduate Jacob Dalton Stanley to wear his Marine dress blues to the Class of 2017’s graduation ceremony Tuesday at the Star Plaza Theatre.

MORE NEWS: Know These Before Moving From Cyprus To The UK

According to the Times of Northwest Indiana:

Stanley, who graduated in December and joined the U.S. Marines, completed boot camp Friday and flew home for his high school graduation. He practiced with his classmates during the day and was reportedly told by high school Principal Chip Pettit that he would not be able to wear his uniform during commencement.

Stanley wore his uniform anyway, and school officials would not allow him to receive his diploma at the ceremony. His name was listed on the graduation program, but officials did not read his name among the graduates.

Stanley’s classmate, graduate Leann Tustison, told the Times the school’s decision to block the newly minted Marine was “absolutely ridiculous.

“He’s in the military putting his life on the line for us,” Tustison said.

“It’s unacceptable that he was not allowed to walk across the stage. If he wants to walk across the stage in his uniform that he worked so hard for and earned, he should have the right to do that. That’s his achievement. They honored other people’s achievements whether they were in triathlon or other activities,” she continued.

“If his achievement is joining the armed forces, he should have been able to do that. The students were outraged. There were some students who were going to walk in solidarity with Jake. It was a disgrace.”

MORE NEWS: How to prepare for face-to-face classes

Numerous other students who spoke with the news site agreed with Tustison.

“It was despicable that he wasn’t allowed to wear his uniform. We should be proud of that as Americans. He should have been able to wear his military uniform,” Crown Point graduate Jessica Janda said.

Folks online overwhelmingly sided with Stanley, and lashed out at school officials for the decision.

Stanley declined to comment about the situation, but issued a statement through the 9th Marine Corps District, Naval Station Great Lakes, according to NBC Chicago.

“I don’t want the social media controversy that is drawing attention away from the Class of 2017,” the statement read. “I also do not want to make any additional statements and wish to put this all behind me so I can start my career in the Marine Corps.”

Neither the Crown Point school district nor the Marines have a policy on dress blues during graduation, and leave the decision up to school officials, according to the Times.

Principal Chip Pettit defended the decision and alleged it was not meant to disrespect the military, or Stanley, or veterans, or the school community.

“This tradition is not intended to be disrespectful to students, parents, or our community, but as a source of pride for our students,” Pettit told NBC Chicago. “It is also not intended to be disrespectful to our students choosing to serve in the military, our active duty servicemen and women, and our veterans.”

“This practice has served us well as it has allowed the class to show unity by dressing the same, but also allowing for individual accomplishments to be recognized by wearing stoles and chords,” he told the Times. “Last night, at our 135th graduation ceremony, students in all of the aforementioned groups wore their gowns, stoles and chords with great pride.”

At other area schools, graduates who joined the military were encouraged to wear their uniforms.

Hobart High School graduate Ana Kritikos wore her uniform to graduation on June 1. The enlisted intelligence specialist in the U.S. Marine Corps said school officials discussed her uniform and gave her a thumbs up.

“They have been absolutely amazing. It is OK with the Marines for us to wear our uniforms at high school graduation,” Kritikos told the Times. “I know the School Board, the principal and superintendent talked about it and were in agreement that I could wear my Marine uniform.”