The two-time prime minister of Slovenia, Janez Jansa, has been convicted of corruption and sentenced to two years in prison.

Jansa was accused of soliciting bribes as part of a defence deal. He said the charges were politically motivated and that he would appeal.

He was forced from office in March amid protests over corruption and recession.

Slovenia, often seen as the most successful of the former Yugoslav states, faces severe economic problems.

There has been repeated speculation that it may become the latest eurozone member to have to ask for a bailout.

'Political process'

The District Court in Ljubljana ruled on Wednesday that Jansa and two others had sought about 2m euros (Ł1.7m) in commission from a Finnish firm, Patria, in order to help it win a military supply contract in 2006.

Under the 278m-euro (Ł237m) deal, Patria was to supply Slovenia with 135 armoured personnel carriers. The deal was scrapped after the corruption allegations surfaced.

The two other defendants were each sentenced to 22 months in prison. All three were also fined 37,000 euros each.

Prosecutions in connection with the case are also taking place in Finland.

Before the verdict was announced on Wednesday, Jansa called the charges a farce and said that if he was found guilty, he would appeal against what he called a "political process".

Jansa was a prominent figure in Slovenia's secession from Yugoslavia in 1991.

He was prime minister from November 2004 to November 2008, and again from February 2012 until March 2013, when his centre-right government lost a confidence motion in parliament after smaller parties left the coalition led by his Slovenian Democratic Party.

As well as facing allegations about corruption and tax irregularities, Jansa's government had been struggling to impose an austerity agenda amid one of the deepest recessions in the eurozone.