Google has been found guilty of breaching copyright laws in a case against Oracle and its Java programming language.

A US jury has found that the firm infringed Oracle’s copyright in nine lines of code used in the Android operating system. However, the jury was unable to decide whether it constituted ‘fair use’ under the copyright law, according the BBC.

Oracle was in pursuit of $1bn in compensation but can now only seek statutory damages between $200 and $150,000.

We appreciate the jury's efforts and know that fair use and infringement are two sides of the same coin," said Google.

"The core issue is whether the APIs here are copyrightable, and that's for the court to decide. We expect to prevail on this issue and Oracle's other claims."

The next part of the trial will look at patent issues between the two companies. Oracle claims that Android violates two Java patents.