LONDON — A British court sentenced Julian Assange, the WikiLeaks founder, to 50 weeks in prison on Wednesday for jumping bail when he took refuge in Ecuador’s Embassy in London seven years ago.

His complex legal travails are far from over: The United States is seeking Mr. Assange’s extradition for prosecution there, and an initial hearing on that request is expected on Thursday. Officials in Sweden have left open the possibility that he could face criminal charges in that country, as well.

Mr. Assange faces a charge of conspiracy to hack into a Pentagon computer network; a federal indictment accuses him of helping an Army private to illegally download classified information in 2010, much of it about the wars in Iraq and Afghanistan, which WikiLeaks then made public. He has denied the charge.

Mr. Assange, 47, was arrested on April 11 after the Ecuadorean government withdrew its protection of him and allowed the police to take him out of the embassy in London, where he had lived since 2012. The same day, he appeared in court and was convicted on the charge of skipping bail.