Tarek Mehanna is accused of trying to get training at a terrorist camp in Yemen as well as translating and distributing online publications promoting violent jihad. He also is charged with lying to federal authorities.

Prosecutors say Mehanna conspired with others to help Al-Qaeda and also plotted to kill US soldiers in Iraq.

Mehanna’s lawyers say he went to Yemen for religious study and that his online activities are protected by the First Amendment.

Opening statements are scheduled Thursday in US District Court in Boston.

Several dozen of Mehanna’s supporters, as well as members of the Occupy Boston group, showed up in court.