A young man stole cash, cigarettes and alcohol from a supermarket in Robertstown, Naas District Court heard.
Dylan Ennis (21) of Grand Canal View in Robertstown broke into the premises through a back window on November 19 last.
The court heard another teenage youth was involved in the incident but he cannot be named for legal reasons as he is underage.
Det Sgt Des McHale of Naas Garda Staton gave evidence that Ennis was identified on CCTV footage and he was later arrested at his home.
A quantity of alcohol and cigarettes was found in the attic of his house.
The court was told that Ennis was from a decent family, had made a full admission to gardai and was extremely co-operative during the garda investigation.
He was embarrassed and ashamed by the offence, solicitor David Gibbons said.
Judge John Cheatle noted that Ennis had a previously good character and made a 'bad mistake' in carrying out the burglary.
He added: "Burglary is a serious offence and would normally attract a custodial sentence."
However he ordered Ennis to carry out 100 hours of community service and adjourned the case to July 20.
If you have a story or want to send a photo or video to us please contact the Kildare Now editorial team. Between 9am and 5pm Monday to Sunday please call 045 409350. Between 5pm and midnight please call or text 086 729 0010. Or you can email content@kildarenow.com at any time.