london, may 1 (xinhua) -- wikileaks co-founder julian assange was sentenced to 50 weeks in jail here on wednesday for breaching bail conditions.
assange was sentenced for breaching his bail by entering the ecuadorian embassy seven years ago.
ahead of his sentencing at southwark crown court in south london, assange apologised for skipping bail in a letter read by attorney mark summers.
he said he found himself "struggling with terrifying circumstances" and did what he thought best.
he apologised to those who "consider i've disrespected them," a packed southwark crown court heard.
"i did what i thought at the time was the best or perhaps the only thing that i could have done," he said.
as he was taken down to the cells, assange raised a fist in defiance to his supporters in the public gallery behind him.
they raised their fists in solidarity and directed shouts of "shame on you" towards the court.
assange sought asylum in the ecuadorian embassy in june 2012 to avoid extradition to sweden, where he was wanted for questioning over rape and sexual assault allegations.
but ecuador evicted him on april 11.
the judges in the case against assange rejected that the wikileaks founder was already punished by being holed up in the embassy for seven years.
"i reject the argument you were living in prison conditions," the judge said.
a judge at an earlier hearing said the 47-year-old hacker's offence "merits the maximum sentence."
he faces a separate court hearing on thursday over a u.s. extradition request on charges of conspiring to break into a pentagon computer system.
the uk will decide whether to extradite assange to the u.s. in response to allegations that he conspired with former u.s. intelligence analyst chelsea manning to download classified databases.