杰瑞科技汇

oracle google java

Of course! "Oracle," "Google," and "Java" are three of the most significant names in the software industry, and their relationships are a fascinating story of collaboration, conflict, and evolution.

oracle google java-图1
(图片来源网络,侵删)

Here’s a breakdown of who they are, their history together, and the key points of contention.


The Short Answer

  • Java: A popular, platform-independent programming language and computing platform, created by Sun Microsystems.
  • Oracle: A massive software corporation that acquired Sun Microsystems in 2010, thereby becoming the owner of Java.
  • Google: A tech giant that uses Java to build its Android mobile operating system.

The core conflict is that Google used parts of Java in Android without a license from Oracle (the new owner). This led to a decade-long, high-stakes legal battle over intellectual property law, specifically whether Google's use was "fair use."


The Players in Detail

Java (The Technology)

  • Creator: Sun Microsystems (founded by Scott McNealy, Vinod Khosla, Bill Joy, and Andy Bechtolsheim).
  • Philosophy: "Write Once, Run Anywhere" (WORA). The idea was that you could write Java code on any operating system (Windows, macOS, Linux) and compile it into an intermediate format called bytecode. This bytecode could then run on any device with a Java Virtual Machine (JVM), making it platform-independent.
  • Key Components:
    • Java Development Kit (JDK): The tools you need to write Java code (compiler, debugger, etc.).
    • Java Runtime Environment (JRE): What you need to run Java applications (the JVM and core libraries).
    • Java API: A vast library of pre-built classes and methods for common tasks (e.g., networking, data structures, user interfaces).

Oracle (The Company and Java's Owner)

  • What they do: Primarily known for their Oracle Database, a dominant relational database management system (RDBMS). They are also a major player in enterprise software, cloud computing (Oracle Cloud Infrastructure), and business applications.
  • Their Role with Java: After acquiring Sun Microsystems in January 2010 for $7.4 billion, Oracle inherited all of Sun's assets, including Java, Solaris, and OpenOffice.
  • Oracle's Vision for Java: They positioned Java as a cornerstone of their enterprise and cloud strategy. They continue to develop and release new versions of Java (now under a versioning scheme like Java 17, Java 21), focusing on performance, security, and new features like Project Loom (virtual threads) and Project Panama (foreign function & memory API).

Google (The User and Adversary)

  • What they do: A global technology company focused on Internet-related services and products. Search is their core business, but they also dominate in web advertising (Google Ads), mobile (Android), and cloud (Google Cloud).
  • Their Relationship with Java: When Google was building the Android OS in the mid-2000s, they needed a programming language for app developers. They chose Java because of its popularity and large pool of developers.
  • The "Android Java" Situation: Google did not use the official Oracle Java. Instead, they created a custom, clean-room implementation of the Java API. This means they wrote their own code to replicate the functionality of Java's libraries but did not copy Oracle's actual source code. This was done to avoid licensing Java from Sun at the time.

The Epic Legal Battle: Oracle v. Google

This is the central drama of the relationship. The case went to the Supreme Court twice and fundamentally shaped modern copyright law.

The Core Dispute

Oracle sued Google in 2010 for copyright infringement. They claimed that Google's use of 37 Java APIs in Android was illegal because:

oracle google java-图2
(图片来源网络,侵删)
  1. The Java API is creative and therefore copyrightable.
  2. Google copied this creative expression without a license.

Google's defense was that their use was "fair use" under U.S. copyright law, which allows the unlicensed use of copyrighted material for purposes like commentary, criticism, news reporting, and research. Google argued that:

  1. They were using the APIs to allow developers to interoperate with Java—a transformative purpose.
  2. They created their own implementation (the code), not just a copy.
  3. Their use was not harmful to Oracle; in fact, it expanded the Java ecosystem.

The Legal Journey (A Simplified Timeline)

  1. 2012 (Trial Court): A jury initially found in favor of Google, ruling that the APIs were not copyrightable.
  2. 2025 (Federal Circuit Court of Appeals): This court reversed the decision, famously ruling that APIs are copyrightable. This was a huge shock to the tech industry, as APIs were generally considered functional building blocks, not creative works.
  3. 2025 (Supreme Court - First Review): The Supreme Court sent the case back to the lower courts, saying they had misapplied the "fair use" doctrine.
  4. 2025 (Supreme Court - Final Decision): In a landmark 6-2 decision, the Supreme Court ruled in favor of Google.
    • The Key Takeaway: While the Court acknowledged that the Java APIs were copyrightable, they found that Google's use of them was "fair use."
    • Reasoning: Google's use was highly transformative. It created a new, different, and innovative platform (Android) that expanded the use of Java into a new market (mobile phones) in a way that was not a market substitute for Oracle's Java.
    • The Fair Use Factors: The Court weighed factors like purpose and character of the use (transformative), the nature of the copyrighted work (creative but functional), and the effect on the potential market (Android helped, not hurt, Java's overall popularity).

The Aftermath and Future

  • Google Won, But the Landscape Changed: The decision was a massive victory for Google and the tech industry, solidifying that copying APIs for interoperability and innovation can be considered fair use.
  • Java is Still Owned by Oracle: The case didn't change ownership. Oracle still controls the Java specification and the official JDK. Companies that want to be "Java SE Compatible" (i.e., pass the official compatibility tests) still need a license from Oracle.
  • OpenJDK is the De Facto Standard: To avoid licensing complexities, most companies (including Google, Amazon, Microsoft) now use OpenJDK, an open-source implementation of Java that Oracle itself open-sourced. This is the foundation of most modern Java distributions.
  • Impact on APIs: The ruling has given software developers and companies more confidence when building upon or interoperating with existing APIs, knowing that a "fair use" defense is legally viable.

Summary Table

Aspect Java Oracle Google
Core Identity A programming language & computing platform. A multinational software corporation (owner of Java). A multinational technology corporation (user of Java).
Role in the Story The technology at the center of the dispute. The plaintiff and current owner of Java. The defendant and creator of Android (user of Java APIs).
Key Conflict N/A Accused Google of copyright infringement for using Java APIs. Defended its use of Java APIs as "fair use" to build Android.
Current Status Evolving platform, owned and developed by Oracle. Won the legal battle but faces a changed, open-source-centric Java ecosystem. Won the legal battle, solidified its position with Android.

In essence, the story of Oracle, Google, and Java is a perfect storm of technology, corporate ambition, and a landmark legal case that continues to influence software development today.

oracle google java-图3
(图片来源网络,侵删)
分享:
扫描分享到社交APP
上一篇
下一篇