Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Apache Harmony
Java programming language Open source implementation

Apache Harmony is a retired open source, free Java implementation, developed by the Apache Software Foundation. It was announced in early May 2005 and on October 25, 2006, the board of directors voted to make Apache Harmony a top-level project. The Harmony project achieved (as of February 2011) 99% completeness for J2SE 5.0, and 97% for Java SE 6. The Android operating system has historically been a major user of Harmony, although since Android Nougat it increasingly relies on OpenJDK libraries.

On October 29, 2011 a vote was started by the project lead Tim Ellison whether to retire the project. The outcome was 20 to 2 in favor, and the project was retired on November 16, 2011.

We don't have any images related to Apache Harmony yet.
We don't have any YouTube videos related to Apache Harmony yet.
We don't have any PDF documents related to Apache Harmony yet.
We don't have any Books related to Apache Harmony yet.
We don't have any archived web articles related to Apache Harmony yet.

History

Initiation

The Harmony project was initially conceived as an effort to unite all developers of the free Java implementations. Many developers expected that it would be the project above the GNU, Apache and other communities. GNU developers were invited into and participated during the initial, preparatory planning.7 Apache then decided not to use code from GNU Classpath because it wanted Harmony to be available under the Apache License v2.8 Apache developers would then write the needed classes from scratch and expect necessary large code donations from software companies. Various misunderstandings at the start of the project, and proposals from major companies like IBM to donate large amounts of existing code, led some people in the free Java community to view the project as a corporate consortium than an Apache project.9

One major point of incompatibility between the GNU Classpath and Apache Harmony projects was their incompatible licenses: Classpath's GNU General Public License with the linking exception versus Harmony's Apache License.10

Difficulties to obtain a TCK license from Sun

See also: Technology Compatibility Kit

On April 10, 2007, the Apache Software Foundation sent an open letter to Sun Microsystems CEO, Jonathan Schwartz regarding their inability to acquire an acceptable license for the Java SE 5 Technology Compatibility Kit (TCK), a test kit needed by the project to demonstrate compatibility with the Java SE 5 specification, as needed by the Sun specification license for Java SE 5.11 What makes the license unacceptable for ASF is the fact that it imposes rights restrictions through limits on the "field of use" available to users of Harmony, not compliant with the Java Community Process rules.12

Sun answered on a company blog1314 that it intended to create an open source implementation of the Java platform under GPL, including the TCK, but that their priority was to make the Java Platform accessible to the Linux community under GPL as quickly as possible.

This answer triggered some reactions, either criticizing Sun for not responding "in a sufficiently open manner" to an open letter,15 or rather Apache Software Foundation; some think that ASF acted unwisely to aggressively demand something they could have obtained with more diplomacy from Sun, especially considering the timescale of the opening class library.1617

Sun released the OpenJDK in May 2007, along with a specific license to allow to run the TCK in the OpenJDK context for any GPL implementation deriving substantially from OpenJDK.18 This does not cover Apache Harmony, which is not GPL-licensed. On December 9, 2010, the Apache Software Foundation resigned from the Java Community Process Executive Committee,19 in protest over the difficulty in obtaining a license acceptable to Apache for use with the Harmony project.20

Use in Android SDK

The virtual machine that is used in Google's Android platform (Dalvik up to version 4.4, and its successor, Android Runtime (ART)) uses a subset of Harmony for the core of its Class Library.2122 However, Dalvik does not align to Java SE nor Java ME Class Library profiles (for example J2ME classes, AWT and Swing are not supported).

Android 7.0 "Nougat" replaced Harmony with OpenJDK.23

End of the project

On October 11, 2010, IBM, by far the biggest participant in the project, decided to join Oracle on the OpenJDK project, effectively shifting its efforts from Harmony to the Oracle reference implementation.2425 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".26 In March 2011, IBM's Tim Ellison announced that he resigned as Project Management Chair for Harmony2728 After IBM's disengagement, the project's activity level greatly declined.29

On October 29, 2011, a poll was started on the harmony-dev mailing list by the project lead Tim Ellison whether to retire the project. The outcome on November 3, was 20 to 2 in favor of retirement.30 On November 16, 2011, the Apache Software Foundation board of directors passed a motion to terminate the project.31 One director, Larry Rosen, cast a "no" vote, based on the timing rather than the merits of the proposal; it was otherwise unanimous.32 The project was retired on November 16, 2011.33

Development team

At the start, Apache Harmony received some large code contributions from several companies. Development discussions have taken place on open mailing lists. Later, the Apache Software foundation mentors put a lot of effort into bringing the development process more in line with "the Apache way,"3435 and it seemed that their efforts were successful.

Last development status

Apache Harmony was accepted among the official Apache projects on October 29, 2006.

Architecture

The Dynamic Runtime Layer virtual machine consists of the following components:

  1. The VM core: with its subcomponents concentrates most of the JVM control functions.
  2. The porting layer: hides platform-specific details from other VM components behind a single interface and is based on the Apache Portable Runtime layer.
  3. The garbage collector: allocates Java objects in the heap memory and reclaims unreachable objects using various algorithms
  4. Execution Manager: selects the execution engine for compiling a method, handles profiles and the dynamic recompilation logic.
  5. Class Library: is a Java standard library.
  6. The thread manager that handle operating system threading
  7. The execution engine: consists of the following:
    1. The just-in-time compiler for compilation and execution of method code.
    2. The interpreter for easier debugging.

Support platform and operating system

The project provided a portable implementation that ease development on many platforms and operating systems. The main focus was on Windows and Linux operating systems on x86 and x86-64 architectures.36

Windows 2000Windows XP, Server 2003, VistaLinux RHEL, SLES, Debian, Gentoo, FedoraFreeBSDAIXMac OS X
IA-32 (Pentium III or better)NoYesYesNo
x86-64 (Intel 64, AMD64)YesYes
Itanium (IA64, IPF)NoYes
PowerPC 32-bitNo
PowerPC 64-bitNoNo
zSeries 31-bitNo

Class library coverage

The expected donations from software companies were actually received. The Apache Harmony now contains the working code, including the Swing, AWT and Java 2D code which were contributed by Intel.

As of February 2011[update], the Harmony project achieved 99% completeness for JDK 5.0, and 97% for Java SE 6.37

The progress of the Apache Harmony project can be tracked against J2SE 1.4 and Java SE 5.0.38 Also, there is a branch for Harmony v6.0 in development for Java SE 6.0.

Apache Harmony developers integrate several existing, field-tested open-source projects to meet their goal (not reinventing the wheel). Many of these projects are mature and well known and other parts of the library needed to be written from scratch.

This is a list of existing open source components that are used in the Apache Harmony project; some of them were in use before the project started.

ComponentDescription
ICUMature C/C++ and Java libraries for Unicode support and software internationalization and globalization
Apache XalanXSLT stylesheet processor for Java, C++ which implements XPath language
Apache XercesXML parser library for Java, C++, Perl
Apache Portable RuntimeCross-platform abstraction library, provides platform independence
Apache CXFRobust, high performance Web services framework work over protocols such as SOAP, XML/HTTP, RESTful HTTP, CORBA
BCELLibraries to decompose, modify, and recompose binary Java classes, i.e., bytecode
MX4JJava Management Extensions (JMX) tools to manage and monitor applications, system objects, devices and service-oriented networks
VM MagicSet of extensions to Java language to facilitate systems programming in Java by adding direct memory operations, etc.
Bouncy CastleLibraries collection of lightweight cryptography for Java and C#
ANTLRLanguage tool, provides a framework to construct recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in many target languages

Documentation

Harmony is less documented than the alternative free Java implementations. For instance, in GNU Classpath every method of the central CORBA class (ORB) has the explaining comment both in the standard abstract API class39 and implementation.40 In the Yoko project, used by Harmony,41 most methods both in the standard declaration42 and implementing class43 were undocumented at the end of October 2006. Also, GNU Classpath supported both older and newer CORBA features (same as Sun's implementation). Harmony, differently, left the central method of the older standard (ORB.connect(Object)) fully unimplemented.

Tools

A complete implementation of the Java platform also needs a compiler that translates Java source code into bytecodes, a program that manages JAR files, a debugger, and an applet viewer and web browser plugin, to name a few. Harmony has the compiler, appletviewer, jarsigner, javah, javap, keytool, policytool, and unpack200.44

Virtual machine support

Harmony has seven virtual machine implementations that run Harmony Class Library, all of which were donations by external groups:

  • JC Harmony Edition VM, "JCHEVM," based on the JCVM's interpreter, contributed by the author, Archie Cobbs.
  • BootJVM, a simple bootstrapping virtual machine, contributed by Daniel Lydick.
  • SableVM, an advanced, portable interpreter, contributed by authors from the Sable Research Group; and the Dynamic Runtime Layer Virtual Machine.
  • DRLVM, a just-in-time compiler contributed by Intel.
  • BEA announced the availability of an evaluation version of JRockit VM running Apache Harmony Class Library.45
  • JikesRVM, an open-source meta-circular JVM that use the Apache Harmony Class Library.46
  • Ja.NET SE, an open source project providing a Java 5 JDK (class libraries, tools, etc.) that run on the .NET Framework CLR. Ja.NET SE is based on the Apache Harmony Class Libraries.47

In the end of November 2006, the language support provided by these virtual machine was still incomplete, and the build instructions recommended to use IBM's proprietary J9 instead to run the class library test suite. However, this is not necessary anymore (as of July 2007).

As for the rest of the project, DRLVM virtual machine development has now stalled (as of May 2011).48

Application status

Since its conception, Harmony grew in its ability to execute non-trivial Java applications.49 As of July 2007[update], supported applications include:

However, Harmony's incomplete library prevented it from launching some other applications:

  • ArgoUML: because it needs a Java applet implementation, which was still unavailable in Harmony.
  • Apache Geronimo runs on Apache Harmony with some issues and workarounds.54
  • Vuze, formerly Azureus, because of unimplemented security classes.

See also

  • Free and open-source software portal
  • Computer programming portal

References

  1. "Original FAQ Questions from Project Launch". harmony.apache.org. Retrieved February 27, 2011. We are starting with Java SE 5, as that is the first version of Java SE for which the licensing allows an open source implementation, but we'll continue with Java SE 6 and any subsequent versions that follow. https://harmony.apache.org/faq.html

  2. "Class Library Component Status". harmony.apache.org. Retrieved February 27, 2011. https://harmony.apache.org/subcomponents/classlibrary/status.html

  3. Amadeo, Ron (January 7, 2016). "Android N switches to OpenJDK, Google tells Oracle it is protected by the GPL". Ars Technica. Condé Nast. Retrieved July 1, 2016. https://arstechnica.com/tech-policy/2016/01/android-n-switches-to-openjdk-google-tells-oracle-it-is-protected-by-the-gpl/

  4. Ellison, Tim (November 3, 2011). "Move Apache Harmony to the Attic (updated)". org.apache.harmony.dev. Archived from the original on December 14, 2013. Alt URL Archived February 7, 2013, at the Wayback Machine https://web.archive.org/web/20131214183218/http://mail-archives.apache.org/mod_mbox/harmony-dev/201111.mbox/browser

  5. Ellison, Tim (November 16, 2011). "Board accepted attic resolution". org.apache.harmony.dev. Archived from the original on December 14, 2013. Retrieved November 27, 2011. Alt URL Archived March 14, 2013, at the Wayback Machine https://web.archive.org/web/20131214183218/http://mail-archives.apache.org/mod_mbox/harmony-dev/201111.mbox/browser

  6. "The end of (Apache) Harmony". The H. November 4, 2011. http://www.h-online.com/open/news/item/The-end-of-Apache-Harmony-1371819.html

  7. Mark Wielaard (May 9, 2005). "Harmony!". Archived from the original on May 16, 2008. Retrieved October 21, 2010. Apache has set up a proposal for discussion around a full free j2se implementation. Which they call "Harmony". This is (at the moment) not about code, but about finding out a direction for getting to such a beast. Dalibor, Tom, Jeroen and I were asked to help them in that discussion and possibly show them how to set up a good architecture for it. https://web.archive.org/web/20080516004824/http://article.gmane.org/gmane.comp.java.classpath.devel/5521

  8. Geir Magnusson Jr. (May 24, 2006). "A proposal for a free Java implementation". Apache. https://lwn.net/Articles/135111/

  9. Mark Wielaard (May 24, 2006). "Toward a free Java". LWN.net. All this means that, despite the fact that there is now some code available donated by Intel, there is no practical cooperation between the original free software projects backing Harmony and the project now known as Apache Harmony. All this made some people think of Harmony as a company consortium in the guise of an ASF project and not a full community project. https://lwn.net/Articles/184967/

  10. Mark Wielaard (May 24, 2006). "Toward a free Java". LWN.net. All this means that, despite the fact that there is now some code available donated by Intel, there is no practical cooperation between the original free software projects backing Harmony and the project now known as Apache Harmony. All this made some people think of Harmony as a company consortium in the guise of an ASF project and not a full community project. https://lwn.net/Articles/184967/

  11. "Open Letter to Sun Microsystems - JCK". apache.org. https://www.apache.org/jcp/sunopenletter.html

  12. According to ASF, 1) a specification lead cannot impose any contractual condition or covenant that would limit or restrict the right of any licensee to create or distribute such Independent Implementations (section 5.C.III), and 2) a specification lead must license all necessary IP royalty-free to any compatible implementation of a specification (section 5.B).

  13. "On the Record". Archived from the original on April 21, 2007. https://web.archive.org/web/20070421103127/http://blogs.sun.com/ontherecord/

  14. "Sun to Apache: "Open Source Process is a Journey" - Java IoT". Archived from the original on July 9, 2008. Retrieved April 14, 2007. https://web.archive.org/web/20080709013915/http://java.sys-con.com/read/360602.htm

  15. "The Silence from an Open Sun". Ian Skerrett. April 16, 2007. http://ianskerrett.wordpress.com/2007/04/16/the-silence-from-an-open-sun/

  16. "Mark J. Wielaard » Blog Archive » OpenJCK". Retrieved August 27, 2023. https://gnu.wildebeest.org/blog/mjw/2007/04/21/openjck/

  17. Gilbert, Dave (April 16, 2007). "Five Reasons Why Apache Will Regret That Open Letter". Archived from the original on April 18, 2007. Retrieved March 8, 2008. https://web.archive.org/web/20070418002440/http://jroller.com/page/dgilbert?entry=five_reasons_why_apache_will

  18. "OpenJDK Community TCK License Agreement V 1.1" (PDF). Sun Microsystems. Retrieved March 8, 2008. Subject to and conditioned upon its Licensee Implementation being substantially derived from OpenJDK Code and, if such Implementation has or is to be distributed to a third party, its being distributed under the GPL License, Sun hereby grants to Licensee, to the extent of Sun's Intellectual Property Rights in the TCK, a worldwide, personal, non-exclusive, non-transferable, limited license to use the TCK internally and solely for the purpose of developing and testing Licensee Implementation. http://openjdk.java.net/legal/openjdk-tck-license.pdf

  19. "The ASF Resigns From the JCP Executive Committee". Apache Software Foundation. December 9, 2010. https://blogs.apache.org/foundation/entry/the_asf_resigns_from_the

  20. "Apache quits Java governance group in protest of Oracle abuses". Ars Technica. December 9, 2010. https://arstechnica.com/open-source/news/2010/12/apache-resigns-from-jcp-in-protest-of-oracle-governance-failures.ars

  21. "Google's Android SDK Bypasses Java ME in Favor of Java Lite and Apache Harmon". infoq.com. November 12, 2007. Retrieved May 31, 2009. Instead of providing a full version of the Java SE or Java ME Google has diverged on two fronts. First, a limited subset of the core Java packages is provided. (...) By going this route Android is following in the footsteps of another Google project GWT which uses Java as its development language but does not support the full JDK. http://www.infoq.com/news/2007/11/android-java

  22. "Package Index". Open Handset Alliance. Archived from the original on June 27, 2009. Retrieved May 31, 2009. https://developer.android.com/reference/packages.html

  23. Amadeo, Ron (January 7, 2016). "Android N switches to OpenJDK, Google tells Oracle it is protected by the GPL". Ars Technica. Condé Nast. Retrieved July 1, 2016. https://arstechnica.com/tech-policy/2016/01/android-n-switches-to-openjdk-google-tells-oracle-it-is-protected-by-the-gpl/

  24. "Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK". Oracle Corporation. Archived from the original on October 14, 2010. Retrieved October 22, 2010. http://www.marketwire.com/press-release/Oracle-and-IBM-Collaborate-to-Accelerate-Java-Innovation-Through-OpenJDK-NASDAQ-ORCL-1332855.htm

  25. Ryan Paul (October 13, 2010). "Java wars: IBM joins OpenJDK as Oracle shuns Apache Harmony". Ars Technica. Archived from the original on October 19, 2010. Retrieved October 22, 2010. https://arstechnica.com/open-source/news/2010/10/ibm-joins-openjdk-as-oracle-shuns-apache-harmony.ars

  26. Bob Sutor. "IBM joins the OpenJDK community, will help unify open source Java efforts". Archived from the original on October 18, 2010. Retrieved October 22, 2010. 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. https://web.archive.org/web/20101018160132/http://www.sutor.com/c/2010/10/ibm-joins-the-openjdk-community/

  27. Tim Ellison (March 14, 2011). "Rebooting the Harmony project". Retrieved March 20, 2011. http://harmony.markmail.org/message/ah5f42h4p2bhub6o

  28. "What is the Future of Apache Harmony?". infoq.com. March 14, 2011. Retrieved March 20, 2011. http://www.infoq.com/news/2011/03/apache-harmony

  29. "Mailing list archives: [email protected]". apache.org. Retrieved September 11, 2011. https://mail-archives.apache.org/mod_mbox/harmony-dev/

  30. Ellison, Tim (November 3, 2011). "Move Apache Harmony to the Attic (updated)". org.apache.harmony.dev. Archived from the original on December 14, 2013. Alt URL Archived February 7, 2013, at the Wayback Machine https://web.archive.org/web/20131214183218/http://mail-archives.apache.org/mod_mbox/harmony-dev/201111.mbox/browser

  31. "Board of Directors Meeting Minutes". Apache Software Foundation. November 16, 2011. Retrieved August 8, 2012. Larry wishes it to be noted that he is not against termination, he simply would have preferred to have more time to work on the messaging. https://www.apache.org/foundation/records/minutes/2011/board_minutes_2011_11_16.txt

  32. "Board of Directors Meeting Minutes". Apache Software Foundation. November 16, 2011. Retrieved August 8, 2012. Larry wishes it to be noted that he is not against termination, he simply would have preferred to have more time to work on the messaging. https://www.apache.org/foundation/records/minutes/2011/board_minutes_2011_11_16.txt

  33. Ellison, Tim (November 16, 2011). "Board accepted attic resolution". org.apache.harmony.dev. Archived from the original on December 14, 2013. Retrieved November 27, 2011. Alt URL Archived March 14, 2013, at the Wayback Machine https://web.archive.org/web/20131214183218/http://mail-archives.apache.org/mod_mbox/harmony-dev/201111.mbox/browser

  34. Leo Simons (July 24, 2006). "We would like all the development to happen right here". Archived from the original on September 29, 2007. Retrieved July 28, 2006. https://web.archive.org/web/20070929124030/http://article.gmane.org/gmane.comp.java.harmony.devel/10742

  35. "The Apache Way". Archived from the original on August 21, 2006. Retrieved July 28, 2006. https://web.archive.org/web/20060821223354/http://incubator.apache.org/learn/theapacheway.html

  36. Harmony Documentation Team. "Apache Harmony - Supported Platforms". harmony.apache.org. https://harmony.apache.org/supported_platforms.html

  37. "Class Library Component Status". harmony.apache.org. Retrieved February 27, 2011. https://harmony.apache.org/subcomponents/classlibrary/status.html

  38. "Results of comparison between JDK_5.0 and Harmony_5.0". people.apache.org. Retrieved August 27, 2023. https://people.apache.org/~chunrong/latest-harmony-japi.html

  39. Class path [permanent dead link‍] http://cvs.savannah.gnu.org/viewcvs/*checkout*/classpath/org/omg/CORBA/ORB.java?rev=1.2.2.12&root=classpath

  40. Class path [permanent dead link‍] http://cvs.savannah.gnu.org/viewcvs/*checkout*/classpath/gnu/CORBA/OrbFunctional.java?rev=1.6&root=classpath

  41. "Harmony uses latest Yoko jars..." September 27, 2006. http://www.mail-archive.com/[email protected]/msg01428.html

  42. "License". apache.org. Retrieved August 27, 2023. https://svn.apache.org/repos/asf/incubator/yoko/trunk/yoko-spec-corba/src/main/java/org/omg/CORBA/ORB.java

  43. "License". apache.org. Retrieved August 27, 2023. https://svn.apache.org/repos/asf/incubator/yoko/trunk/core/src/main/java/org/apache/yoko/orb/OBCORBA/ORB_impl.java

  44. "Apache Harmony - Project Roadmap". harmony.apache.org. Retrieved August 27, 2023. https://harmony.apache.org/roadmap.html

  45. "[general] JRockit H27.2.1 for Harmony Class Library released now". https://mail-archives.apache.org/mod_mbox/harmony-dev/200701.mbox/%[email protected]%3E

  46. "Announcing Jikes RVM 3.0 + Apache Harmony!". https://mail-archives.apache.org/mod_mbox/harmony-dev/200808.mbox/%[email protected]%3e

  47. "Janet Dev". http://www.janetdev.org/

  48. "Subversion Commits". harmony.apache.org. Retrieved May 28, 2011. https://issues.apache.org/jira/browse/HARMONY#selectedTab=com.atlassian.jira.plugin.ext.subversion%3Asubversion-project-tab

  49. "Application_Status". apache.org. Archived from the original on August 10, 2007. Retrieved November 4, 2006. https://web.archive.org/web/20070810010109/http://wiki.apache.org/harmony/Application_Status

  50. "Eclipse Unit Tests Pass on DRLVM - Harmony Wiki". Archived from the original on February 8, 2007. Retrieved November 4, 2006. https://web.archive.org/web/20070208110623/http://wiki.apache.org/harmony/Eclipse_Unit_Tests_Pass_on_DRLVM#PassRate_2007

  51. "Apache_Tomcat". apache.org. Archived from the original on February 10, 2007. Retrieved November 4, 2006. https://web.archive.org/web/20070210122940/http://wiki.apache.org/harmony/Apache_Tomcat

  52. "JUnit". apache.org. https://wiki.apache.org/harmony/JUnit

  53. "Apache_Ant". apache.org. Archived from the original on February 10, 2007. Retrieved November 4, 2006. https://web.archive.org/web/20070210122607/http://wiki.apache.org/harmony/Apache_Ant

  54. "Apache Harmony". apache.org. https://cwiki.apache.org/confluence/display/GMOxDOC20/Apache+Harmony