Lance Corporal Gary McMillan, 23, assaulted Ryan Ritchie at Silk in King’s Stables Road on November 30 last year.
Edinburgh Sheriff Court heard how the Royal Highland Fusilier saw Mr Ritchie in the club with his former girlfriend. McMillan could not bear the sight and lashed out at Mr Ritchie, striking him with a beer bottle, which broke over his head.
The court heard that Mr Ritchie escaped serious injury, but McMillan was arrested by police.
McMillan was accompanied into court yesterday by an officer from the regiment and gave his address as c/o Glencorse Barracks in Edinburgh as he pleaded guilty to an assault charge.
Defence solicitor Graeme Runcie said the soldier would be disciplined for his conduct by commanding officers.
Sheriff Alison Stirling fined McMillan £400 and ordered him to pay his victim compensation of the same.