Brusthom Ziamani, who idolised killers of Lee Rigby, was arrested with a knife and a hammer in a rucksack.
A teenager was arrested as he made his way to behead a British soldier, a court has heard.
Brusthom Ziamani, 19, was carrying a rucksack containing a 12-inch knife and a hammer, when he was arrested on a street in east London in August 2014.
The Old Bailey heard he idolised the killers of Fusilier Lee Rigby and had researched the location of Army cadet bases in south-east London.
Mr Ziamani, of Camberwell in south-east London, has pleaded not guilty.
Jurors heard Mr Ziamani had converted to Islam in early 2014 and his arrest came after he showed his ex-girlfriend the weapons, described Fusilier Rigby’s killer Michael Adebolajo as a “legend”, and told her he would “kill soldiers”.
Prosecutor Annabel Darlow told the court: “He didn’t say anything when he was arrested but he was remanded and told a security officer that he had been on his way to kill a British soldier at an Army barracks when he had been arrested.
“He said that he was going to behead the soldier and hold that soldier’s head up in the air so that a friend could take a photograph with the severed head of the soldier.”
“You may think that his aim was to emulate the dubious feats of his hero Michael Adebolajo, who had murdered a British soldier close to the Woolwich barracks where he worked.”
The jury heard he also put posts on Facebook under the name Mujahid Karim, supporting Sharia law and stating he was “willing to die in the cause of Allah”.
Mr Ziamani had previously been arrested in June 2014, the court heard.
The court was told that on 20 June he had searched the internet for “Camberwell Army cadets” and for cadets in Lewisham.
Jurors also heard he had looked at the website of the London Irish Rifles Association and found details of the Army Cadet Force in Blackheath.
After this arrest police found a letter in his jeans addressed to his “beloved parents” saying he was a “changed person”.
He wrote of being martyred and going to paradise and referenced people being raped, tortured and killed in Iraq and Syria, saying he had a “duty” to help them.
He wrote: “Because I have no means ov gettin there I will wage war against the british government on this soil the british government will have a taste of there own medicine they will be humiliated this is ISIB Islamic State of Ireland and Britain.
“Now we will take a thousand ov yours then ten thousand and send you all to the hell-fire you want war you got it British soldiers heads will be removed and burned u cannot defeat the Muslims we love to die the way you love to live my fellow muslim brothers these people want war lets kill them slaughter them and implement sharia in our lands and UK.
He went on: “Lee Rigby is burnin in hell im dying good for him this is what you get for voting Cameron and democracy.”
He told police he looked up to radical preachers including Abu Hamza and Anjem Choudary, but denied he was planning an attack.
He was later released on bail and spoken to in July by engagement officers from the anti-radicalisation Prevent programme.
The court heard Mr Ziamani was unresponsive and said he “did not need help with his religion” and had left the home of his Christian family.
Mr Ziamani continued to post extremist material on Facebook, including a photo of six severed heads, the court head.
The jury, of eight women and four men, also heard he researched the murder of Fusilier Rigby, reading news articles about the attack and Adebolajo.
The prosecution said Mr Ziamani identified with Adebolajo, as he was also a convert from a Christian family.
Mr Ziamani is charged with preparing an act of terrorism on or before 20 August 2014.
source: BBC NEWS