From HandWiki
Short description: Free and open-source implementation of Java SE
OpenJDK logo.svg
Developer(s)Oracle, OpenJDK and Java Community, Red Hat, Azul Systems, IBM, Microsoft, Amazon, Apple, SAP
Initial releaseMay 8, 2007; 15 years ago (2007-05-08)
Written inC++ and Java
Operating systemLinux, FreeBSD, macOS, Microsoft Windows, OpenIndiana; several other ports in progress
TypeJava platform
LicenseGPL-2.0-only with linking exception

OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).[1] It is the result of an effort Sun Microsystems began in 2006. The implementation is licensed under the GPL-2.0-only with a linking exception. Were it not for the GPL linking exception, components that linked to the Java class library would be subject to the terms of the GPL license. OpenJDK is the official reference implementation of Java SE since version 7.[2][3][4]


The OpenJDK project produces a number of components: most importantly the virtual machine (HotSpot), the Java Class Library and the Java compiler (javac).

The web-browser plugin and Web Start, which form part of Oracle Java, are not included in OpenJDK. Sun previously indicated that they would try to open-source these components, but neither Sun nor Oracle have done so.[5] The only currently available free plugin and Web Start implementations (As of 2016 ) are those provided by IcedTea.

OpenJDK 9+ supports AOT compilation (jaotc) using GraalVM (JEP 295).[6] The experimental -XX:+EnableJVMCIProduct flag enables the use of Graal JIT (JEP 317).[7]

OpenJDK versions

OpenJDK was initially based only on the JDK 7 version of the Java platform.[8]

Since JDK 10, the effort to produce an open-source reference implementation of the Java SE Platform was moved over to the JDK Project.[9] Unlike past JDK Release Projects, which produced just one feature release and then terminated, this long-running project will produce all future JDK feature releases and will ship a feature release every six months according to a strict, time-based model.[10]

There are several separate OpenJDK & JDK Project development branches:

  • The JDK project release 17.[11]
  • The JDK project release 16.[11]
  • The JDK project release 15.[11]
  • The JDK project release 14.[11]
  • The JDK project release 13.[11]
  • The JDK project release 12.[11]
  • The JDK project release 11.[11]
  • The JDK project release 10.[11]
  • The OpenJDK 9 project, which is the basis for JDK 9.[12]
  • The OpenJDK 8u project, which is based on JDK 8 and produces updates to the existing Java 8 releases.[13]
  • The OpenJDK 8 project, which is the basis for JDK 8, was released on 18 March 2014.[14]
  • The OpenJDK 7u project, which is based on JDK 7 and produces updates to the existing Java 7 releases.[15]
  • The OpenJDK 6 project, which is based on JDK 7, retrofitted to provide an open-source version of Java 6.[16][17][18] Note that Red Hat resigned leadership of OpenJDK 6 at the beginning of 2017 and this was then taken up by Azul Systems.[19][20]

OpenJDK builds

Due to Oracle no longer releasing updates for long-term support (LTS) releases under a permissive license, others have begun offering builds for Windows.[21][22][23] Linux distributions have always offered their own builds.

Build Organization LTS Permissive
AdoptOpenJDK[24] (moved to Eclipse as Eclipse Adoptium in 2021)[25] Yes Yes Yes Optional Optional (IBM)
Alibaba Dragonwell[26] Alibaba Group Yes Yes No No No
Amazon Corretto[27] Amazon Yes Yes Yes No[28] Optional (on AWS)
Azul Zulu[29] Azul Systems Yes Yes Yes No Optional
BellSoft Liberica JDK[30] BellSoft Yes Yes Yes No Optional
Eclipse Adoptium/Temurin[31] Eclipse Foundation Yes Yes Yes No Optional (Azul, IBM)
IBM Semeru Runtime Certified Edition[32] IBM Yes No[33] Yes No Optional (IBM)
IBM Semeru Runtime Open Edition[34] IBM Yes Yes[33] No No Optional (IBM)
IBM Java SDK[35](version 11 moved to IBM Semeru Runtime Certified Edition) IBM Yes No Yes No Yes
JetBrains Runtime[36] JetBrains Yes Yes No No No
Microsoft Build of OpenJDK[37] Microsoft Yes Yes Yes No Optional (on Azure)
ojdkbuild[38] Yes Yes No Yes No
OpenLogic OpenJDK[39] OpenLogic Yes Yes No No Optional
GraalVM Community Edition[40] GraalVM No Yes Yes No No
Oracle GraalVM Enterprise Edition[41] Oracle Corporation Yes No Yes No Yes
Oracle Java SE[42] Oracle Corporation Yes No Yes No Yes
Oracle OpenJDK[43] Oracle Corporation No Yes Yes No[44][45] No
Red Hat build of OpenJDK[46] Red Hat Yes Yes Yes No Yes
SAP SapMachine[47] SAP Yes Yes Yes No Optional (for SAP products)

IcedTea and inclusion in software distributions

Main page: Software:IcedTea

In order to bundle OpenJDK in Fedora and other free Linux distributions, OpenJDK needed to be buildable using only free software components. Due to the encumbered components in the class library and implicit assumptions within the build system that the JDK being used to build OpenJDK was a Sun JDK, this was not possible. To achieve openness, Red Hat started the IcedTea project in June 2007.[48] It began life as an OpenJDK/GNU Classpath hybrid that could be used to bootstrap OpenJDK, replacing the encumbrances with code from GNU Classpath.[49][50]

On November 5, 2007, Red Hat signed both the Sun Contributor Agreement and the OpenJDK Community TCK License.[51] One of the first benefits of this agreement is tighter alignment with the IcedTea project, which brings together Fedora, the Linux distribution, and JBoss, the application server, technologies in a Linux environment. IcedTea provided free software alternatives for the few remaining proprietary sections in the OpenJDK project.

In May 2008, the Fedora 9[52][53] and Ubuntu 8.04[54] distributions included IcedTea 6, based completely on free and open source code.[55] Fedora 9 was the first version to be shipped with IcedTea6, based on the OpenJDK6 sources from Sun rather than OpenJDK7. It was also the first to use OpenJDK for the package name (via the OpenJDK trademark agreement) instead of IcedTea.[52] Ubuntu also first packaged IcedTea7[56] before later moving to IcedTea6. Packages for IcedTea6 were also created for Debian and included in Lenny. On July 12, 2008, Debian accepted OpenJDK-6 in unstable,[57][58] and it later was included in stable.[59] OpenJDK is also available on openSUSE,[60] Red Hat Enterprise Linux and RHEL derivatives such as CentOS.[61]

In June 2008, Red Hat announced that the packaged binaries for OpenJDK on Fedora 9, built using IcedTea 6, had passed the Technology Compatibility Kit tests and could claim to be a fully compatible Java 6 implementation.[62] In July 2009, an IcedTea 6 binary build for Ubuntu 9.04 passed all of the compatibility tests in the Java SE 6 TCK.[63]

Since August 2008, OpenJDK 7 is usable on macOS and other BSD variants.[64]

On Android Nougat, OpenJDK replaced the now-discontinued Apache Harmony as the Java libraries in the source code of the mobile operating system. Google was in a legal dispute with Oracle over claims of copyright and patent infringement through its use of re-implementations of copyrighted Java APIs via Harmony. While also stating that this change was to create a more consistent platform between Java on Android and other platforms, the company admitted that the switch was motivated by the lawsuit, arguing that Oracle had authorized its use of the OpenJDK code by licensing it under the GPL.[65]


Sun's promise and initial release

Sun announced in JavaOne 2006 that Java would become open-source software,[66][67] and on October 25, 2006, at the Oracle OpenWorld conference, Jonathan Schwartz said that the company intended to announce the open-sourcing of the core Java Platform within 30 to 60 days.[68]

Sun released the Java HotSpot virtual machine and compiler as free software under the GNU General Public License on November 13, 2006, with a promise that the rest of the JDK (which includes the Java Runtime Environment) would be placed under the GPL by March 2007, "except for a few components that Sun does not have the right to publish in source form under the GPL".[69] According to free-software advocate Richard Stallman, this would end the "Java trap", the vendor lock-in that he argues applied to Java and programs written in Java.[70]

Release of the class library

Following their promise to release a Java Development Kit (JDK) based almost completely on free and open-source code in the first half of 2007,[71] Sun released the complete source code of the Java Class Library under the GPL on May 8, 2007, except for some limited parts that had been licensed to Sun by third parties and Sun was unable to re-license under the GPL.[72] Included in the list of encumbered parts were several major components of the Java graphical user interface (GUI). Sun stated that it planned to replace the remaining proprietary components with alternative implementations and to make the class library completely free.

When initially released in May 2007, 4% of the OpenJDK class library remained proprietary.[73] By the appearance of OpenJDK 6 in May 2008, less than 1% (the SNMP implementation,[74] which is not part of the Java specification) remained,[52] making it possible to build OpenJDK without any binary plugs.[74] The binary plug requirement was later dropped from OpenJDK 7 as part of b53 in April 2009.[75]

This was made possible, over the course of the first year, by the work of Sun Microsystems and the OpenJDK community. Each encumbrance[76] was either released as free and open-source software or replaced with an alternative. Beginning in December 2010, all the so-called binary plugs were replaced by open-source replacements, making the whole JDK open sourced and the binary plugs not necessary anymore.[77]

Community improvements

On November 5, 2007, Red Hat announced an agreement with Sun, signing Sun's broad contributor agreement (which covers participation in all Sun-led free and open-source software projects by all Red Hat engineers) and Sun's OpenJDK Community Technology Compatibility Kit (TCK) License Agreement (which gives the company access to the test suite that determines whether a project based on OpenJDK complies with the Java SE 6 specification).[78]

Also in November 2007, the Porters Group was created on OpenJDK to aid in efforts to port OpenJDK to different processor architectures and operating systems. The BSD porting project led by Kurt Miller and Greg Lewis and the Mac OS X porting project (based on the BSD one) led by Landon Fuller have expressed interest in joining OpenJDK via the Porters Group. As of January 2008, both are part of the mailing list discussions. Another project pending formalization on the Porters Group is the Haiku Java Team led by Bryan Varner.[79]

In December 2007, Sun moved the revision control of OpenJDK from TeamWare to Mercurial (and later to Git and GitHub), as part of the process of releasing it to open-source communities.[80][81]

OpenJDK has comparatively strict procedures of accepting code contributions: every proposed contribution must be reviewed by another OpenJDK committer and the contributor must have signed the Sun/Oracle Contributor Agreement (SCA/OCA).[82] Preferably, there should also be a jtreg[83] test demonstrating the bug has been fixed. Initially, the external patch submission process was slow[84] and, until September 2008, commits to the codebase were only made by Sun engineers.[85] The process has improved and, (As of 2010), simple patches and backports from OpenJDK 7 to OpenJDK 6 can take place within hours rather than days.[86]

In 2011, an unofficial port of OpenJDK 6.0 to OS/2 was first released.[87] This port is included in the OS/2 derivative ArcaOS.[88]

On 25 September 2013, Microsoft and Azul Systems collaborated to create Zulu,[89] a build of OpenJDK for users of the Windows Azure cloud. Zulu is available as a free download from the community site It is also possible to get Zulu on Amazon Web Services[90] via Canonical's Juju Charm Store,[91] the Docker Hub,[92] and Azul Systems repositories. Azul contributes bug fixes and enhancements back to the OpenJDK project and has several project committers on staff.[93]

Since April 2016 there are unsupported community builds of OpenJDK for Microsoft Windows on GitHub in the project ojdkbuild which are released in pace with updates for Oracle JDK. From build 8u151 on, the MSI-installer offers an optional component for using Java Web Start based on the IcedTea-Web project.

In 2020, a port of OpenJDK 8 to OpenVMS on the Itanium platform was released.[94]

The number of external contributions to OpenJDK is growing since project inception. OpenJDK 11, released in September 2018, received 20% of external fixes[95] and brought 17 new JEPs (features), out of which 3 were contributed by the community. Namely, JEP 315: "Improve Aarch64 Intrinsics" (contributed by BellSoft), JEP 318: "Epsilon: A No-Op Garbage Collector" (by Red Hat) and JEP 331: "Low-Overhead Heap Profiling" (contributed by Google).[96]

Collaboration with IBM, Apple, and SAP

On October 11, 2010, IBM, by far the biggest participant in the Apache Harmony project, decided to join Oracle on the OpenJDK project, effectively shifting its efforts from Harmony to OpenJDK.[97][98] Bob Sutor, IBM's head of Linux and open source, blogged that "IBM will be shifting its development effort from the Apache Project Harmony to OpenJDK".[99]

On November 12, 2010, Apple Inc. (just three weeks after deprecating its own Java runtime port[100]) and Oracle Corporation announced the OpenJDK project for Mac OS X. Apple will contribute most of the key components, tools and technology required for a Java SE 7 implementation on Mac OS X, including a 32-bit and 64-bit HotSpot-based Java virtual machine, class libraries, a networking stack and the foundation for a new graphical client.[101]

On January 11, 2011, the Mac OS X Port Project was created on OpenJDK, and Apple made the first public contribution of code to the project. The initial Apple contribution built on the OpenJDK BSD port.[102]

In July 2011, SAP AG announced that SAP officially joined the OpenJDK project.[103]

See also


  1. "OpenJDK homepage". Oracle Corporation and/or its affiliates. 
  2. Moving to OpenJDK as the official Java SE 7 Reference Implementation
  3. Java Platform, Standard Edition 7 Reference Implementations
  4. "Java Platform, Standard Edition 8 Reference Implementations". 
  5. Darcy, Joe (June 8, 2009). "OpenJDK and the new plugin". 
  6. "Ahead-of-Time (AOT) Compilation May Come to OpenJDK HotSpot in Java 9". 2016-10-01. "AOT brings about a new tool called ‘jaotc' which uses Graal as the backend (to generate code)" 
  7. "[JDK-8232118 Add JVM option to enable JVMCI compilers in product mode - Java Bug System"]. 
  8. "Didn't you promise to open source both JDK 6 and JDK 7 last November? What happened to JDK 6?". Sun Microsystems. "Sun did make that promise, and we plan to keep it. But in the six months since the November 2006 announcement, it has become clear that doing this is far more complex than just changing the license and publishing the source code." 
  9., mark reinhold at (September 26, 2017). "CFV: New Project: JDK". 
  10., mark reinhold at (September 6, 2017). "Accelerating the JDK release cadence". 
  11. 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 OpenJDK. "JDK Project". 
  12. "JDK 9". 
  13. "OpenJDK: JDK 8 Updates". 
  14. "JDK 8". 
  15. "JDK 7". 
  16. "OpenJDK: JDK 6". 
  17. It will be (Open)JDK7 where OpenJDK==JDK | . Retrieved on 2013-08-09.
  18. Darcy, Joe (February 11, 2008). "The code is coming! The code is coming!". "At Sun we're making final preparations for the first source release for the OpenJDK 6 project. We plan to release a tarball of the source, along with matching binary plugs, by February 15, 2008." 
  19. Haley, Andrew (October 1, 2016). "OpenJDK6 End Of Life". jdk6-dev (Mailing list). Archived from the original on July 2, 2017. Retrieved February 12, 2018.
  20. Bell, Tim (October 1, 2016). "New lead for the JDK 6 Project: Andrew Brygin". jdk6-dev (Mailing list). Archived from the original on February 19, 2018. Retrieved February 19, 2018.
  21. "Time to look beyond Oracle's JDK". 
  22. Difference between OpenJDK and AdoptOpenJDK
  23. Java is Still Free
  24. "AdoptOpenJDK - Open source, prebuilt OpenJDK binaries". 
  25. "Good-bye AdoptOpenJDK. Hello Adoptium!" (in en). 
  26. "Alibaba Dragonwell". 
  27. "Amazon Corretto". 
  28. "Amazon Introduces Amazon Corretto Crypto Provider (ACCP)". 
  29. "Zulu Community: Free, tested builds of OpenJDK managed by Azul engineers". 
  30. "Download Liberica JDK, OpenJDK, Java 8, Java 11, Linux, Windows, macOS". 
  31. "Adoptium - Open source, prebuilt OpenJDK binaries". 
  32. "IBM Semeru Runtimes - IBM Developer". 
  33. 33.0 33.1 "Introducing the no-cost IBM Semeru Runtimes to develop and run Java applications". 
  34. "IBM Semeru Runtimes - IBM Developer". 
  35. "Home - Java SDK". 
  36. "JetBrains Runtime - JetBrains Runtime - Confluence". 
  37. "Microsoft Build of OpenJDK". 
  38. "ojdkbuild/ojdkbuild". 
  39. "OpenJDK Downloads". 
  40. "GraalVM". 
  41. "GraalVM Enterprise". 
  42. "Java SE". 
  43. "JDK Builds from Oracle". 
  44. "[JDK-8215030 Disable shenandoah in Oracle builds"]. 
  45. "Not all OpenJDK 12 builds include Shenandoah: Here's why". 
  46. "OpenJDK Overview". 
  47. "An OpenJDK release maintained and supported by SAP". 
  48. Fitzsimmons, Thomas (June 8, 2007). "Credits". 
  49. Andrew, Haley (June 7, 2007). "Experimental Build Repository at". 
  50. Mark, Wielaard (June 7, 2007). "Experimental Build Repository at". 
  51. "Red Hat and Sun Collaborate to Advance Open Source Java Technology". Red Hat. November 5, 2007. 
  52. 52.0 52.1 52.2 Wade, Karsten (March 13, 2008). "OpenJDK in Fedora 9!". "Thomas Fitzsimmons updated the Fedora 9 release notes source pages to reflect that Fedora 9 would ship with OpenJDK 6 instead of the IcedTea implementation of OpenJDK 7. Fedora 9 (Sulphur) is due to release in May 2008." 
  53. "Open Source Java Technology Debuts In GNU/Linux Distributions". Sun Microsystems. 
  54. "openjdk-6 in Ubuntu". 
  55. Reinhold, Mark (April 24, 2008). "There's not a moment to lose!". 
  56. "icedtea-java7 in Ubuntu". 
  57. Topic, Dalibor (July 14, 2008). "QotD: Debian Overview of openjdk-6 source package". 
  58. "Overview of openjdk-6 source package". 
  59. "Package: openjdk-6-jdk". February 14, 2009. 
  60. "Package: OpenJDK". 
  61. "How to download and install prebuilt OpenJDK packages". 
  62. Sharples, Rich (June 19, 2008). "Java is finally Free and Open". 
  63. Announcing OpenJDK 6 Certification for Ubuntu 9.04 (jaunty)
  64. Fuller, Landon (August 19, 2008). "SoyLatte, Meet OpenJDK: OpenJDK 7 for Mac OS X". 
  65. "Android N switches to OpenJDK, Google tells Oracle it is protected by the GPL". 
  66. Schwartz, Jonathan (May 23, 2006). "Busy Week...". Sun Microsystems. 
  67. "Sun Opens Java" (OGG Theora). Sun Microsystems. 
  68. "Sun CEO sets open source Java time frame - Announcement set for 30 to 60 days". InfoWorld. October 25, 2006. 
  69. "Sun Opens Java". Sun Microsystems. November 13, 2006. 
  70. Stallman, Richard. "Free But Shackled—The Java Trap". 
  71. Oracle and Sun . (2011-10-04). Retrieved on 2013-08-09.
  72. "Open JDK is here!". Sun Microsystems. May 8, 2007. 
  73. Fitzsimmons, Thomas (May 18, 2007). "Plans for OpenJDK". 
  74. 74.0 74.1 "OpenJDK 6 b10 source posted". May 30, 2008. 
  75. "Changes in OpenJDK7 b53". April 2, 2009. 
  76. Herron, David (October 4, 2007). "Plans for OpenJDK". 
  77. Kelly O'Hair (December 2010). "OpenJDK7 and OpenJDK6 Binary Plugs Logic Removed". Oracle Corporation. 
  78. Broad contributor agreement and TCK License pave way for a fully compatible, free and open-source Java Development Kit for Red Hat Enterprise Linux
  79. koki (January 3, 2008). "New java for haiku team formed". Haiku. 
  80. James Gosling (October 2006). "James Gosling on Open Sourcing Sun's Java Platform Implementations, Part 1" (Interview). Interviewed by Robert Eckstein.
  81. O'Hair, Kelly (December 12, 2007). "Mercurial OpenJDK Questions". 
  82. "Sun Microsystems Inc. Contributor Agreement". 
  83. "Regression Test Harness for the OpenJDK platform: jtreg". 
  84. Tripp, Andy (July 16, 2007). "Classpath hackers frustrated with slow OpenJDK process". 
  85. Kennke, Roman (September 29, 2008). "A small step for me". 
  86. Darcy, Joe (June 10, 2010). "Backporting changeset from 7 to 6 for bugfix". 
  87. "Java for OS/2 and OS/2-based systems". 
  88. "Compatibility Subsystems". 
  89. "Microsoft, Azul Bring OpenJDK to Windows Azure With 'Zulu'". 
  90. "Azul Zing goes live on Red Hat Enterprise Linux on Amazon Web Services | Financial Industry & Algorithmic Trading News | Automated Trader". 
  91. "Azul Systems Joins Canonical's Charm Partner Program". 
  92. "Azul Systems puts Java 8 into Docker containers for Linux users". 
  93. "Java Standards: Essential for Your Business - Azul Systems, Inc." (in en-US). Azul Systems, Inc.. 
  94. "New OpenJDK for OpenVMS announced". 2020-06-10. 
  95. Dalibor Topic (October 2018). "Building JDK 11 Together". Oracle Corporation. 
  96. Mark Reinhold (October 2018). "JDK 11". Oracle Corporation. 
  97. "Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK". Oracle Corporation. 
  98. Ryan Paul. "Java wars: IBM joins OpenJDK as Oracle shuns Apache Harmony". Ars Technica. 
  99. Bob Sutor. "IBM joins the OpenJDK community, will help unify open source Java efforts". "IBM will be shifting its development effort from the Apache Project Harmony to OpenJDK. For others who wish to do the same, we’ll work together to make the transition as easy as possible. IBM will still be vigorously involved in other Apache projects." 
  100. "Java for Mac OS X 10.6 Update 3 and 10.5 Update 8 Release Notes". October 20, 2010. 
  101. "Oracle and Apple Announce OpenJDK Project for Mac OS X". Business Wire. November 12, 2010. "Oracle and Apple today announced the OpenJDK project for Mac OS X. Apple will contribute most of the key components, tools and technology required for a Java SE 7 implementation on Mac OS X, including a 32-bit and 64-bit HotSpot-based Java virtual machine, class libraries, a networking stack and the foundation for a new graphical client. OpenJDK will make Apple’s Java technology available to open source developers so they can access and contribute to the effort." 
  102. Mike Swingler (Apple) (January 11, 2011). "Announcing: OpenJDK for Mac OS X source repository, mailing list, project home". OpenJDK. "I'm very happy to let you know that today we made the first public contribution of code to the OpenJDK project for Mac OS X. This initial contribution builds on the hard work of the BSD port, and initially has the same functionality. Today's contribution simply modifies the build process to create universal binary, and produces a .jdk bundle which is recognized by Java Preferences and the JVM detection logic in Mac OS X." 
  103. Volker Simonis (SAP AG) (July 14, 2011). "SAP joins the OpenJDK". OpenJDK. "I'm really happy that as of today, SAP has signed the Oracle Contributor Agreement (OCA). This means that with immediate effect the SAP JVM developers can officially join the discussions on the various OpenJDK mailing lists and contribute patches and enhancements to the project." 

External links