The trial of a 21-year-old Dublin man accused of murder has begun at the Central Criminal Court.
Bernard Christopher Joyce, also known as Brian Joyce, of Carton Road, Poppintree in Ballymun, denies murdering 26-year-old James Donoghue on 10 September 2006.
Mr Joyce has also pleaded not guilty to violent disorder and production of a knife.
Prosecuting counsel Roger Sweetman told the jury that Mr Joyce was engaged in a joint enterprise with two others on the night James Donoghue was fatally stabbed.
The three had been refused entry to a family party at Cairn Court in Poppintree and threw a bottle into the yard of the house. Some of the guests at the party came out and 'gave them a hiding'.
The three went home and armed themselves with knives and returned to the house inciting the guests to come out and fight.
Mr Donoghue came out and during a confrontation he was fatally stabbed.
He died from a stab wound to the heart, he also received a blow to the head causing a skull fracture and other non-fatal stab wounds.
Clothing was found with blood stains and DNA matched the deceased.
A knife was found in the home of the accused. It had a bloodstain on it but it is accepted it was probably not the knife that caused the fatal wound.
Mr Joyce accepts he was there and that he stabbed Mr Donoghue but said it was in self-defence.
The prosecution told the jury if they find he engaged with others to commit a crime then he is equally guilty irrespective of who inflicted the fatal blow.