GNU Classpath
Encyclopedia : G : GN : GNU : GNU Classpath
GNU Classpath is a project aiming to create a free implementation of the standard class library for the Java programming language. It is a part of the Free Software Foundation's GNU project. Despite the massive size of the library to be created, the majority of the task is already done, including Swing, CORBA, and other major parts. The Classpath developers have implemented almost all of the classes from J2SE 1.4 and 5.0, and Classpath can thus be used to run popular Java-based software such as Azureus and Eclipse.
Uses
GNU Classpath is used by many free Java runtimes (like Kaffe, SableVM, JamVM, CACAO, Jikes RVM) because every full-featured Java virtual machine must provide an implementation of the standard class libraries.Some other uses include:
- the GNU Compiler for Java, which is capable of compiling Java code into native standalone executables.
- IKVM.NET, which integrates Java with the .NET Framework
- JNode operating system for running java applications. This system is written in Java and assembler only.
- specialised virtual machines such as Jaos for integration with the Oberon programming language, and JamaicaVM for embedded systems with real-time guarantees.
- virtual machines for the distributed computing with clusters, having up to 128 processors on Myrinet ([link]).
History
GNU Classpath development started in 1998 with five developers. During the history, it merged several times with other projects having similar goals (Kaffe, libgcj). In the past, GNU Classpath supplied its own virtual machine (Japhar). As Classpath was becoming a base library, shared with a lot of different projects, this virtual machine received less and less attention and is now no longer supported. After implementing the majority of the official Java 1.4 API, the work in the project became more bug oriented rather than API coverage oriented. The development speed (computed mathematically as the average number of the new lines of code per day) reached its highest ever in 2006.Development team
The project team consists of about 70 developers and one active maintainer. The maintainer takes care of the legal side of the project, prepares the regular project releases and does some quality management. The maintainer also grants the CVS access permissions.Unlike some projects, GNU Classpath has no formal hierarchy. The work is done by the most technically capable, and there is no strict work division either. All code changes are first posted to the discussion list as patches where they can be opposed if needed. The project typically receives between five and eight patches per day.
The project has its own testing suite (Mauve) with about 175.000 tests and performs daily checks to ensure that the project classes are compatible with the official Sun API classes.
Virtual machine integration
GNU Classpath contains classes from the official java API namespace. Where calls to the native code are necessary or highly desired, this is done from the small number of "VM" classes. The name of such class matches the name of the class, requiring native methods plus the additional VM prefix: VMObject, VMString and so on. VM classes, stored separately form the rest of code, are package private and final. The methods of these classes contain the keyword native, indicating the necessity of the supporting library. Such library is provided by the authors of the java virtual machine. Hence GNU Classpath can be connected to near any java virtual machine if the sources of such machine are available and can be modified. For instance, it cannot be used with Sun's virtual machine that does not satisfy these conditions.License
GNU Classpath is licensed under the GPL with linking exception. This is a free software licence. All code is formally owned by the Free Software Foundation, and this owner is bound by its own official obligations to developers.See also
- redirect
External links
- [GNU Classpath homepage]
- [Automatically generated documentation, including source code]
- [May 2006 article by a GNU Classpath developer about the state of free java project collaborations]
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
