It's just business
Larry and Steve Jobs were the best of friends. Steven want's Google out of the mobile market, but cannot do it himself because it anti-competitive. So with a nice little slush fund at hand, Larry buys Java (Sun) at Steve behest, and roles them in and out of court for years to come.
It's just business guys. Remember Microsoft financing SCO to destroy Linux.