A boxing coach caught with cannabis bought it after he won money betting on the football World Cup.
James Geoghan (50) had planned to share the cannabis with one other person.
Judge Patricia McNamara refused to leave Geoghan without a conviction and fined him €750.
The defendant, of The Grove, Belgard Heights, Tallaght, admitted before Tallaght District Court to possession of cannabis and having it for sale or supply.
Sgt Michael Ahern said gardai obtained a warrant and searched the defendant's home on July 30, 2014.
He said officers found cannabis with a street value of €600.
The court heard Geoghan has no previous convictions.
Defence lawyer George Burns said his client was interviewed by gardai and admitted he had bought the cannabis to share with someone else.
Mr Burns said the defendant paid €300 for the cannabis. He said Geoghan bought it after the World Cup with money he had won betting on a football match.
He said Geoghan has three children, two of whom are in university.
The court heard the defendant, who is unemployed, is also involved in boxing clubs.
Mr Burns asked the judge to leave Geoghan without a conviction, but she refused.