NEWARK - Two New Jersey men who admitted to plotting to join an armed Islamic group in Somalia in order to wage holy war against non-Muslims have been sentenced.

Mohamed Alessa, of North Bergen, was sentenced to 22 years, and Carlos Almonte, of Elmwood Park, will spend 20 years in prison after pleading guilty to conspiring within the United States to murder individuals outside the country in March 2011. They were arrested in June 2010 at JFK Airport as they prepared to board separate planes to Egypt.

Attorneys for the two men attempted to portray them as troubled youths, as opposed to would-be terrorists.

U.S. District Judge Dickinson Debevoise oversaw the case in Newark.