OpenJDK#Class library
{{Short description|Free and open-source implementation of Java SE}}
{{Use mdy dates|date=June 2013}}
{{Infobox software
| name = OpenJDK
| logo = 200px
| screenshot =
| caption =
| author = Sun Microsystems
| developer = Oracle, OpenJDK and Java Community, Red Hat, Azul Systems, IBM, Microsoft, Amazon, Apple, SAP
| released = {{Start date and age|2007|05|08}}
| latest release version = {{wikidata|property|edit|reference|P348}}
| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}
| operating system = Linux, FreeBSD, macOS, Microsoft Windows, OpenIndiana, OpenVMS; several other ports in progress
| programming language = C++ and Java
| genre = Java development kit
| license = GPL-2.0-only with linking exception
| website = {{URL|https://openjdk.org/}}
}}
OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).{{cite web|url = http://openjdk.java.net/|title = OpenJDK homepage|publisher=Oracle Corporation and/or its affiliates|access-date=January 1, 2013}} It is the result of an effort Sun Microsystems began in 2006, four years before the company was acquired by Oracle Corporation. The implementation is licensed under the GNU General Public License 2 with a linking exception, preventing components that linked to the Java Class Library becoming subject to the terms of the GPL license. OpenJDK is the official reference implementation of Java SE since version 7, and is the most popular distribution of the JDK.{{Cite web|url=https://blogs.oracle.com/java/moving-to-openjdk-as-the-official-java-se-7-reference-implementation|title=Moving to OpenJDK as the official Java SE 7 Reference Implementation}}{{Cite web|url=https://jdk.java.net/java-se-ri/7|title=Java Platform, Standard Edition 7 Reference Implementations|website=jdk.java.net}}{{cite web |title=Java Platform, Standard Edition 8 Reference Implementations |url=http://jdk.java.net/java-se-ri/8 |archive-url=https://web.archive.org/web/20151121054204/https://jdk8.java.net/java-se-8-ri/ |archive-date=November 21, 2015}}
History
{{see also|Java (Sun)#Licensing}}
=Sun's promise and initial release=
Sun announced in JavaOne 2006 that Java would become open-source software,{{cite web |last=Schwartz |first=Jonathan |date=May 23, 2006 |title=Busy Week... |url=http://blogs.sun.com/roller/page/jonathan/200605#busy_week1 |url-status=dead |archive-url=https://web.archive.org/web/20060717164412/http://blogs.sun.com/roller/page/jonathan/200605 |archive-date=July 17, 2006 |access-date=May 9, 2007 |publisher=Sun Microsystems}}{{cite web |title=Sun Opens Java |url=http://mediacast.sun.com/share/tmarble/Sun_Opens_Java.ogg |url-status=dead |archive-url=https://web.archive.org/web/20090319020035/http://mediacast.sun.com/share/tmarble/Sun_Opens_Java.ogg |archive-date=March 19, 2009 |publisher=Sun Microsystems |format=OGG Theora}} 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.{{cite web |date=October 25, 2006 |title=Sun CEO sets open source Java time frame - Announcement set for 30 to 60 days |url=http://www.infoworld.com/d/developer-world/sun-ceo-sets-open-source-java-time-frame-558 |access-date=2011-12-22 |publisher=InfoWorld}}
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".{{cite web |date=November 13, 2006 |title=Sun Opens Java |url=http://www.sun.com/2006-1113/feature/index.jsp |archive-url=https://web.archive.org/web/20070421151747/http://www.sun.com/2006-1113/feature/index.jsp |archive-date=April 21, 2007 |access-date=May 9, 2007 |publisher=Sun Microsystems}} 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.{{cite web |last=Stallman |first=Richard |title=Free But Shackled—The Java Trap |url=https://www.gnu.org/philosophy/java-trap.html |access-date=December 4, 2007}}
=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,[http://www.sun.com/software/opensource/java/faq.jsp#b4 Oracle and Sun] {{Webarchive|url=https://web.archive.org/web/20120303230525/http://www.oracle.com/us/sun/index.htm#b4|date=March 3, 2012}}. Sun.com (2011-10-04). Retrieved on 2013-08-09. 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.{{cite web |date=May 8, 2007 |title=Open JDK is here! |url=http://mail.openjdk.java.net/pipermail/announce/2007-May.txt |access-date=May 9, 2007 |publisher=Sun Microsystems}} 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.{{cite web |last=Fitzsimmons |first=Thomas |date=May 18, 2007 |title=Plans for OpenJDK |url=http://fitzsim.org/blog/?p=17 |access-date=May 22, 2007}} By the appearance of OpenJDK 6 in May 2008, less than 1% (the SNMP implementation,{{cite web |date=May 30, 2008 |title=OpenJDK 6 b10 source posted |url=http://mail.openjdk.java.net/pipermail/jdk6-dev/2008-May/000058.html |access-date=June 1, 2008}} which is not part of the Java specification) remained, making it possible to build OpenJDK without any binary plugs. The binary plug requirement was later dropped from OpenJDK 7 as part of b53 in April 2009.{{cite web |date=April 2, 2009 |title=Changes in OpenJDK7 b53 |url=http://download.java.net/jdk7/changes/jdk7-b53.html |url-status=dead |archive-url=https://web.archive.org/web/20090406171143/http://download.java.net/jdk7/changes/jdk7-b53.html |archive-date=April 6, 2009 |access-date=September 5, 2009 |df=mdy-all}}
This was made possible, over the course of the first year, by the work of Sun Microsystems and the OpenJDK community. Each encumbrance{{cite web |last=Herron |first=David |date=October 4, 2007 |title=Plans for OpenJDK |url=http://weblogs.java.net/blog/robogeek/archive/2007/10/openjdk_encumbr.html |url-status=dead |archive-url=https://web.archive.org/web/20071011014156/http://weblogs.java.net/blog/robogeek/archive/2007/10/openjdk_encumbr.html |archive-date=October 11, 2007 |access-date=October 9, 2007 |df=mdy-all}} 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.{{cite web |author=Kelly O'Hair |date=December 2010 |title=OpenJDK7 and OpenJDK6 Binary Plugs Logic Removed |url=http://mail.openjdk.java.net/pipermail/build-dev/2010-December/003881.html |access-date=2011-11-25 |publisher=Oracle Corporation}}
=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).{{Cite web |title=Broad contributor agreement and TCK License pave way for a fully compatible, free and open-source Java Development Kit for Red Hat Enterprise Linux |url=http://www.businesswire.com/portal/site/google/index.jsp?ndmViewId=news_view&newsId=20071105005882&newsLang=en |url-status=dead |archive-url=https://web.archive.org/web/20100228161007/http://www.businesswire.com/portal/site/google/index.jsp?ndmViewId=news_view&newsId=20071105005882&newsLang=en |archive-date=February 28, 2010 |access-date=January 4, 2008}}
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.{{cite web |author=koki |date=January 3, 2008 |title=New java for haiku team formed |url=http://haiku-os.org/news/2008-01-03/new_java_for_haiku_team_formed |url-status=dead |archive-url=https://web.archive.org/web/20080105150946/http://haiku-os.org/news/2008-01-03/new_java_for_haiku_team_formed |archive-date=January 5, 2008 |publisher=Haiku}}
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.{{cite interview |interviewer=Robert Eckstein |title=James Gosling on Open Sourcing Sun's Java Platform Implementations, Part 1 |url=http://java.sun.com/developer/technicalArticles/Interviews/gosling_os1_qa.html |date=October 2006 |subject=James Gosling}}{{cite web |last=O'Hair |first=Kelly |date=December 12, 2007 |title=Mercurial OpenJDK Questions |url=http://blogs.sun.com/kto/entry/mercurial_openjdk_questions |url-status=dead |archive-url=https://web.archive.org/web/20120305080437/https://blogs.oracle.com/roller-ui/errors/404.jsp |archive-date=March 5, 2012 |df=mdy-all}}
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).{{cite web |title=Sun Microsystems Inc. Contributor Agreement |url=http://oss.oracle.com/oca.pdf}} Preferably, there should also be a jtreg{{cite web |title=Regression Test Harness for the OpenJDK platform: jtreg |url=http://openjdk.java.net/jtreg/ |access-date=August 26, 2008}} test demonstrating the bug has been fixed. Initially, the external patch submission process was slow{{cite web |last=Tripp |first=Andy |date=July 16, 2007 |title=Classpath hackers frustrated with slow OpenJDK process |url=http://www.javalobby.org/java/forums/t98834.html |url-status=usurped |archive-url=https://web.archive.org/web/20130717141329/http://www.javalobby.org/java/forums/t98834.html |archive-date=July 17, 2013 |access-date=April 20, 2008}} and, until September 2008, commits to the codebase were only made by Sun engineers.{{cite web |last=Kennke |first=Roman |date=September 29, 2008 |title=A small step for me |url=http://kennke.org/blog/2008/09/29/a-small-step-for-me/ |url-status=dead |archive-url=https://web.archive.org/web/20081003094214/http://kennke.org/blog/2008/09/29/a-small-step-for-me/ |archive-date=October 3, 2008 |access-date=October 19, 2008}} The process has improved and, {{as of|2010|lc=on}}, simple patches and backports from OpenJDK 7 to OpenJDK 6 can take place within hours rather than days.{{cite web |last=Darcy |first=Joe |date=June 10, 2010 |title=Backporting changeset from 7 to 6 for bugfix |url=http://mail.openjdk.java.net/pipermail/jdk6-dev/2010-June/001708.html}}
In 2011, an unofficial port of OpenJDK 6.0 to OS/2 was first released.{{cite web |title=Java for OS/2 and OS/2-based systems |url=https://trac.netlabs.org/java |access-date=2020-09-09 |website=netlabs.org}} This port is included in the OS/2 derivative ArcaOS.{{cite web |title=Compatibility Subsystems |url=https://www.arcanoae.com/wiki/arcaos/compatibility-subsystems/ |access-date=2020-09-09 |website=arcanoae.com}}
On 25 September 2013, Microsoft and Azul Systems collaborated to create Zulu,{{Cite web |title=Microsoft, Azul Bring OpenJDK to Windows Azure With 'Zulu' |url=http://www.eweek.com/developer/microsoft-azul-bring-openjdk-to-windows-azure-with-zulu.html |access-date=2015-12-03 |website=www.eweek.com}}{{Dead link|date=August 2024|bot=InternetArchiveBot|fix-attempted=yes}} a build of OpenJDK for users of the Windows Azure cloud. Zulu is available as a free download from the community site [http://zulu.org/ Zulu.org]. It is also possible to get Zulu on Amazon Web Services{{Cite web |last=parthik |first=dahima |date=14 October 2024 |title=Java Programming Interview Questions And Answers For students |url=https://boxoflearn.com/advance-java-viva-questions/ |access-date=2024-10-14 |website=www.boxoflearn.com}} via Canonical's Juju Charm Store,{{Cite web |title=Azul Systems Joins Canonical's Charm Partner Program |url=http://www.enterprisetech.com/2015/07/22/azul-systems-joins-canonicals-charm-partner-program/ |access-date=2015-12-03 |website=EnterpriseTech}} the Docker Hub,{{Cite web |title=Azul Systems puts Java 8 into Docker containers for Linux users |url=http://www.v3.co.uk/v3-uk/news/2371497/azul-systems-puts-java-8-into-docker-containers-for-linux-users |access-date=2015-12-03 |website=www.v3.co.uk}} and Azul Systems repositories. Azul contributes bug fixes and enhancements back to the OpenJDK project and has several project committers on staff.{{Cite news |title=Java Standards: Essential for Your Business - Azul Systems, Inc. |url=https://www.azul.com/products/zulu-and-zulu-enterprise/java-standards/ |access-date=2018-02-06 |work=Azul Systems, Inc. |language=en-US}} Red Hat resigned leadership of OpenJDK 6 at the beginning of 2017 and this was then taken up by Azul Systems.{{cite mailing list |last=Haley |first=Andrew |title=OpenJDK6 End Of Life |mailing-list=jdk6-dev |date=October 1, 2016 |url=http://mail.openjdk.java.net/pipermail/jdk6-dev/2016-October/003606.html |access-date=February 12, 2018 |archive-url=https://web.archive.org/web/20170702101259/http://mail.openjdk.java.net/pipermail/jdk6-dev/2016-October/003606.html |archive-date=July 2, 2017 |url-status=live}}{{cite mailing list |last=Bell |first=Tim |title=New lead for the JDK 6 Project: Andrew Brygin |mailing-list=jdk6-dev |date=October 1, 2016 |url=http://mail.openjdk.java.net/pipermail/jdk6-dev/2017-January/003614.html |access-date=February 19, 2018 |archive-url=https://web.archive.org/web/20180219175751/http://mail.openjdk.java.net/pipermail/jdk6-dev/2017-January/003614.html |archive-date=February 19, 2018 |url-status=live}}
Since April 2016 there are unsupported community builds of OpenJDK for Microsoft Windows on GitHub in the project ojdkbuild[https://github.com/ojdkbuild/ojdkbuild 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.{{cite web |date=2020-06-10 |title=New OpenJDK for OpenVMS announced |url=https://vmssoftware.com/about/news/2020-06-10-openjdk-announcement/ |access-date=2020-09-09 |website=vmssoftware.com}}
The number of external contributions to OpenJDK is growing since project inception. OpenJDK 11, released in September 2018, received 20% of external fixes{{cite web |author=Dalibor Topic |date=October 2018 |title=Building JDK 11 Together |url=https://blogs.oracle.com/java-platform-group/building-jdk-11-together |access-date=2019-05-27 |publisher=Oracle Corporation}} 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).{{cite web |author=Mark Reinhold |date=October 2018 |title=JDK 11 |url=https://openjdk.java.net/projects/jdk/11/ |access-date=2019-05-27 |publisher=Oracle Corporation}}
=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.{{cite web |title=Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK |url=http://www.marketwire.com/press-release/Oracle-and-IBM-Collaborate-to-Accelerate-Java-Innovation-Through-OpenJDK-NASDAQ-ORCL-1332855.htm |access-date=October 22, 2010 |publisher=Oracle Corporation}}{{cite web |author=Ryan Paul |title=Java wars: IBM joins OpenJDK as Oracle shuns Apache Harmony |url=https://arstechnica.com/open-source/news/2010/10/ibm-joins-openjdk-as-oracle-shuns-apache-harmony.ars |access-date=October 22, 2010 |publisher=Ars Technica}} 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".{{cite web |author=Bob Sutor |title=IBM joins the OpenJDK community, will help unify open source Java efforts |url=http://www.sutor.com/c/2010/10/ibm-joins-the-openjdk-community/ |url-status=dead |archive-url=https://web.archive.org/web/20101018160132/http://www.sutor.com/c/2010/10/ibm-joins-the-openjdk-community/ |archive-date=October 18, 2010 |access-date=October 22, 2010 |quote=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.}}
On November 12, 2010, Apple Inc. (just three weeks after deprecating its own Java runtime port{{cite web |date=October 20, 2010 |title=Java for Mac OS X 10.6 Update 3 and 10.5 Update 8 Release Notes |url=https://developer.apple.com/library/mac/#releasenotes/Java/JavaSnowLeopardUpdate3LeopardUpdate8RN/NewandNoteworthy/NewandNoteworthy.html}}) 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.{{cite web |date=November 12, 2010 |title=Oracle and Apple Announce OpenJDK Project for Mac OS X |url=http://www.businesswire.com/news/home/20101112005253/en/Oracle-Apple-Announce-OpenJDK-Project-Mac-OS |access-date=2010-11-12 |publisher=Business Wire |quote=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.}}
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.{{cite web |author=Mike Swingler (Apple) |date=January 11, 2011 |title=Announcing: OpenJDK for Mac OS X source repository, mailing list, project home |url=http://mail.openjdk.java.net/pipermail/macosx-port-dev/2011-January/000007.html |access-date=2010-11-12 |publisher=OpenJDK |quote=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.}}
In July 2011, SAP AG announced that SAP officially joined the OpenJDK project.{{cite web |author=Volker Simonis (SAP AG) |date=July 14, 2011 |title=SAP joins the OpenJDK |url=http://mail.openjdk.java.net/pipermail/discuss/2011-July/001982.html |access-date=2010-11-12 |publisher=OpenJDK |quote=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.}}
Components
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 Corporation have done so.
{{cite web
| url=http://mail.openjdk.java.net/pipermail/jdk6-dev/2009-June/000604.html
| title=OpenJDK and the new plugin
| date=June 8, 2009
| access-date=September 5, 2009
| last=Darcy|first=Joe
}}
The only currently available free plugin and Web Start implementations {{as of | 2016 | lc = on}} are those provided by IcedTea.{{citation needed|date=April 2016}}
OpenJDK 9+ supports AOT compilation ({{code|jaotc}}) using GraalVM (JEP 295).
{{cite web
| url=https://www.infoq.com/news/2016/10/AOT-HotSpot-OpenJDK-9
| publisher=InfoQ.com
| title=Ahead-of-Time (AOT) Compilation May Come to OpenJDK HotSpot in Java 9
| quote=AOT brings about a new tool called 'jaotc' which uses Graal as the backend (to generate code)
| date=2016-10-01
| access-date=2016-10-06
}}
The experimental {{code|-XX:+EnableJVMCIProduct}} flag enables the use of Graal JIT (JEP 317).{{cite web |title=[JDK-8232118] Add JVM option to enable JVMCI compilers in product mode - Java Bug System |url=https://bugs.openjdk.java.net/browse/JDK-8232118 |website=bugs.openjdk.java.net}}
OpenJDK versions
OpenJDK was initially based only on the JDK 7 version of the Java platform.{{cite web
| url=http://www.sun.com/software/opensource/java/faq.jsp#b10
| title=Didn't you promise to open source both JDK 6 and JDK 7 last November? What happened to JDK 6?
| quote=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.
| publisher=Sun Microsystems
| access-date=October 14, 2007
| archive-date=March 3, 2012
| archive-url=https://web.archive.org/web/20120303230525/http://www.oracle.com/us/sun/index.htm#b10
| url-status=dead
}}
Since JDK 10, the effort to produce an open-source reference implementation of the Java SE Platform was moved over to the JDK Project.{{Cite web|url=http://mail.openjdk.java.net/pipermail/announce/2017-September/000231.html|title=CFV: New Project: JDK|last=oracle.com|first=mark reinhold at|date=September 26, 2017|access-date=2018-02-16}} 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.{{Cite web|url=http://mail.openjdk.java.net/pipermail/discuss/2017-September/004281.html|title=Accelerating the JDK release cadence|last=oracle.com|first=mark reinhold at|date=September 6, 2017|access-date=2018-02-16}}
OpenJDK builds
{{missing information|section|presence of installer providing system integration (Windows registry, Mac framework, Linux MIME)|date=November 2020}}
Due to Oracle no longer releasing updates for long-term support (LTS) releases under a permissive license, other organizations have begun to publish their own builds, both in regular and long-term support terms.{{Cite web|url=https://blog.joda.org/2018/09/time-to-look-beyond-oracles-jdk.html|title=Time to look beyond Oracle's JDK|first=Stephen|last=Colebourne}}{{Cite web|url=https://stackoverflow.com/questions/52431764/difference-between-openjdk-and-adoptopenjdk|title=Difference between OpenJDK and Adoptium/AdoptOpenJDK|website=Stack Overflow}}{{Cite web|url=https://medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244|title=Java is Still Free 2.0.3. This is a repeat of (version 2.0.0) of... | by Java Champions | Medium}} Many Linux distributions offer their own builds through their package manager, including Microsoft Windows.
IcedTea and inclusion in software distributions
{{Main|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.
{{cite web
| url=http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2007-June/000032.html
| title=Credits
| date=June 8, 2007
|last=Fitzsimmons|first=Thomas
| access-date=June 8, 2007}}
It began life as an OpenJDK/GNU Classpath hybrid that could be used to bootstrap OpenJDK, replacing the encumbrances with code from GNU Classpath.{{cite web
| url=http://article.gmane.org/gmane.comp.java.openjdk.distro-packaging.devel/5
| title=Experimental Build Repository at icedtea.classpath.org
| date=June 7, 2007
| last=Andrew
| first=Haley
| access-date=June 9, 2007
| archive-url=https://web.archive.org/web/20070820003552/http://article.gmane.org/gmane.comp.java.openjdk.distro-packaging.devel/5
| archive-date=August 20, 2007
| url-status=dead
| url=http://developer.classpath.org/pipermail/classpath/2007-June/002109.html
| title=Experimental Build Repository at icedtea.classpath.org
| last=Mark
| first=Wielaard
| date=June 7, 2007
| access-date=June 9, 2007
| archive-date=June 19, 2007
| archive-url=https://web.archive.org/web/20070619012918/http://developer.classpath.org/pipermail/classpath/2007-June/002109.html
| url-status=dead
}}
On November 5, 2007, Red Hat signed both the Sun Contributor Agreement and the OpenJDK Community TCK License.{{cite web
| url=http://home.businesswire.com/portal/site/google/index.jsp?ndmViewId=news_view&newsId=20071105005882&newsLang=en
| title=Red Hat and Sun Collaborate to Advance Open Source Java Technology
| publisher=Red Hat
| date=November 5, 2007
| access-date=November 6, 2007
| archive-url=https://web.archive.org/web/20070825211213/http://home.businesswire.com/portal/site/google/index.jsp?ndmViewId=news_view
| archive-date=August 25, 2007
| url-status=dead
}} 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{{cite web
| url=http://developer.redhatmagazine.com/2008/03/12/openjdk-to-replace-icedtea-in-fedora-9/
| title=OpenJDK in Fedora 9!
| last=Wade
| first=Karsten
| publisher=redhatmagazine.com
| quote=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.
| date=March 13, 2008
| access-date=April 5, 2008
| archive-url=https://web.archive.org/web/20080421100346/http://developer.redhatmagazine.com/2008/03/12/openjdk-to-replace-icedtea-in-fedora-9/
| archive-date=April 21, 2008
| url-status=dead
{{cite web
| url=http://www.sun.com/aboutsun/pr/2008-04/sunflash.20080430.1.xml
| title=Open Source Java Technology Debuts In GNU/Linux Distributions
| publisher=Sun Microsystems
| access-date=May 2, 2008}} and Ubuntu 8.04{{cite web
| url=https://launchpad.net/ubuntu/+source/openjdk-6
| title=openjdk-6 in Ubuntu
| access-date=April 19, 2008}}
distributions included IcedTea 6, based completely on free and open source code.
{{cite web
|url = http://blogs.sun.com/mr/entry/in_hardy_heron
|title = There's not a moment to lose!
|last = Reinhold
|first = Mark
|date = April 24, 2008
|access-date = April 19, 2008
|url-status = dead
|archive-url = https://web.archive.org/web/20080429191849/http://blogs.sun.com/mr/entry/in_hardy_heron
|archive-date = April 29, 2008
|df = mdy-all
}}
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[http://openjdk.java.net/legal/openjdk-trademark-notice.html OpenJDK trademark agreement]) instead of IcedTea. Ubuntu also first packaged IcedTea7{{cite web
| url=https://launchpad.net/ubuntu/+source/icedtea-java7
| title=icedtea-java7 in Ubuntu
| access-date=April 19, 2008}} 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,{{cite web
|url=http://robilad.livejournal.com/33750.html
|title=QotD: Debian Overview of openjdk-6 source package
|last=Topic|first=Dalibor
|access-date=July 15, 2008
|date=July 14, 2008}}
|url=http://packages.qa.debian.org/o/openjdk-6.html
|title=Overview of openjdk-6 source package
|publisher=debian.org
|access-date=July 15, 2008}} and it later was included in stable.{{cite web
|url=http://packages.debian.org/stable/openjdk-6-jdk
|title=Package: openjdk-6-jdk
|publisher=debian.org
|date=February 14, 2009
|access-date=February 16, 2009}} OpenJDK is also available on openSUSE,{{cite web|url=http://en.opensuse.org/OpenJDK |title=Package: OpenJDK |publisher=opensuse.org |access-date=June 1, 2009 |url-status=dead |archive-url=https://web.archive.org/web/20090527021318/http://en.opensuse.org/OpenJDK |archive-date=May 27, 2009 }} Red Hat Enterprise Linux and RHEL derivatives such as CentOS.{{cite web
| url=http://openjdk.java.net/install/#epel
| title=How to download and install prebuilt OpenJDK packages
| access-date=March 3, 2010}}
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.{{cite web
|url = http://blog.softwhere.org/archives/196
|title = Java is finally Free and Open
|date = June 19, 2008
|last = Sharples
|first = Rich
|url-status = dead
|archive-url = https://web.archive.org/web/20080620065024/http://blog.softwhere.org/archives/196
|archive-date = June 20, 2008
|df = mdy-all
}}
In July 2009, an IcedTea 6 binary build for Ubuntu 9.04 passed all of the compatibility tests in the Java SE 6 TCK.{{Cite web|url=https://lists.ubuntu.com/archives/ubuntu-devel-announce/2009-July/000587.html|title=Announcing OpenJDK 6 Certification for Ubuntu 9.04 (jaunty)|first=Matthias|last=Klose|date=July 11, 2009}}
Since August 2008, OpenJDK 7 is usable on macOS and other BSD variants.{{cite web
|url=http://landonf.bikemonkey.org/code/java/SoyLatte_Meets_OpenJDK.20080819.html
|title=SoyLatte, Meet OpenJDK: OpenJDK 7 for Mac OS X
|last=Fuller|first=Landon
|access-date=August 22, 2008
|date=August 19, 2008}}
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.{{cite web|title=Android N switches to OpenJDK, Google tells Oracle it is protected by the GPL|url=https://arstechnica.com/tech-policy/2016/01/android-n-switches-to-openjdk-google-tells-oracle-it-is-protected-by-the-gpl/|website=Ars Technica|date=January 6, 2016 |access-date=7 January 2016}}
See also
References
{{reflist}}
External links
- [http://openjdk.java.net/ Main site]
- [http://jdk.java.net/ OpenJDK builds from Oracle]
- [https://adoptium.net OpenJDK builds from Adoptium]
- [https://developers.redhat.com/products/openjdk/overview/ OpenJDK builds from Red Hat]
- [https://www.microsoft.com/openjdk Microsoft Build of OpenJDK]
- [https://sap.github.io/SapMachine/ SapMachine, the OpenJDK build of SAP]
- {{cite web|url=https://www.youtube.com/watch?v=wHoRBvt3U6o |title=Java in 2018: Change is the Only Constant Keynote |first=Mark |last=Reinhold |website=YouTube}}
- {{cite web |url=http://today.java.net/pub/a/today/2009/05/21/zero-and-shark-openjdk-port.html |title=Zero and Shark: a Zero-Assembly Port of OpenJDK |first=Gary |last=Benson |date=May 21, 2009 |website=java.net |access-date=March 4, 2018 |archive-date=May 31, 2009 |archive-url=https://web.archive.org/web/20090531095111/http://today.java.net/pub/a/today/2009/05/21/zero-and-shark-openjdk-port.html |url-status=bot: unknown }}
- [http://hg.openjdk.java.net/ OpenJDK official source code]
{{Java (software platform)}}
{{Java Virtual Machine}}
{{Oracle FOSS}}
{{Sun Microsystems}}
{{Portal bar|Free and open-source software|Computer programming}}
Category:Free software programmed in C++
Category:Free software programmed in Java (programming language)
Category:Free virtualization software
Category:Java (programming language)