Google co-founder Larry Page stuck to his guns in a San Francisco court on April 19, testifying that the Internet giant did nothing wrong when it built the Android platform for mobile gadgets.

Page returned to the stand to field questions in a trial over accusations by business software titan Oracle (IW 500/40) that Google opted to infringe on Java program copyright and patents instead of licensing code from Sun Microsystems.

"We did nothing wrong," Page said as he dueled with an Oracle attorney. "We are very careful about what information we use and do not use."

Page, swapping standard Silicon Valley casual wear for a charcoal gray suit, light blue shirt and matching tie, kept his eyes toward the jury and smiled tightly as he testified.

Page held firm even when confronted with a key piece of evidence -- an email from Android team engineers saying that Google should license Java technology from Sun Microsystems for the Android project.

Google worked long and hard with Sun to work out a way to incorporate Java into a smartphone platform, but efforts failed and Google went its own way with Android, according to Page.

"I think Sun, and now Oracle, needed something that actually worked," Page said. "We had a closet full of Java phones that didn't work."

While Google would have preferred to collaborate with Sun, it invested in its own smartphone platform, according to the co-founder.

"Things like the iPhone didn't have Java at all and somehow magically got in consumers' hands," Page said. "I don't think it mattered."

The chiefs of Google and Oracle were opening witnesses this week in a patent case aimed at Android software used to power smartphones and tablet computers.

Oracle is accusing Google of infringing on Java computer programming language patents and copyrights Oracle obtained when it bought Java inventor Sun Microsystems in a $7.4 billion deal brokered in 2009.

Google has denied the claims and said it believes mobile phone makers and other users of its open-source Android operating system are entitled to use the Java technology in dispute.

Google unveiled the free Android operating system two years before Oracle bought Sun.

Protecting and profiting from Java software technology were prime reasons for Oracle's decision in 2009 to buy Sun, according to evidence presented so far at trial.

While testifying on Tuesday, Oracle chief Larry Ellison said that Oracle had considered buying Palm or Blackberry-maker Research In Motion (RIM) to get into the smartphone market but didn't follow through.

Under questioning at trial, Oracle chief corporate architect Edward Screven said that Ellison and others at the company had considered using Java to build a smartphone platform but decided it wasn't feasible.

"Google's Android-Java clone had basically foreclosed the market from us," Screven said.

Screven went on to say that Sun had "lost its way" by the time Oracle bought it and that making money on Sun software available free was one of the ways to recoup the price paid by Oracle.

Part of the Google defense is that Oracle couldn't figure out a way into the smartphone market so is trying to leech off of Android's success by pressing claims regarding Java software that Sun made publicly available.

"If people could copy our software and create cheap knockoffs of our products, we wouldn't get paid for our engineering and wouldn't be able to invest what we invest," Ellison said during his testimony.

Ellison, an experienced courtroom witness, exuded confidence on the stand while Page seemed cautious and evasive, causing the judge to prompt him to directly answer yes-or-no questions.

The trial before U.S. District Court Judge William Alsup could last as long as eight weeks if jurors find that Google did infringe on Oracle's intellectual property and a damages phase is needed.

Copyright Agence France-Presse, 2012