HOME WEB NEWS IMAGES CLASSIFIEDS YELLOW PAGESPOLLS - SURVEYS WIKI COUNTRIES PHOTOS US UK INDIA
Avoo.com provides meta search results from various sources

Java_class_library


Google



1

Java Platform diagram from Sun, Jan 2007 [1]

Java Platform diagram from Sun, Jan 2007 [1]

The Java Class Library is a set of dynamically loadable libraries that Java applications can call at runtime. Because the Java Platform is not dependent on any specific operating system, applications cannot rely on any of the existing libraries. Instead, the Java Platform provides a comprehensive set of standard class libraries, containing much of the same reusable functions commonly found in modern operating systems.

The Java class libraries serve three purposes within the Java Platform:

  • Like other standard code libraries, they provide the programmer a well-known set of functions to perform common tasks, such as maintaining lists of items or performing complex string parsing.
  • In addition, the class libraries provide an abstract interface to tasks that would normally depend heavily on the hardware and operating system. Tasks such as network access and file access are often heavily dependent on the native capabilities of the platform.
  • Finally, some underlying platforms may not support all of the features a Java application expects. In these cases, the class libraries can either emulate those features using whatever is available, or provide a consistent way to check for the presence of a specific feature.

Contents

Architecture

The Java Class Library is almost entirely written in Java itself, except the parts that need to have direct access to the hardware and operating system (as for I/O, or Graphic Rasterisation). The Java classes that give access to these functions commonly use JNI wrappers to access the native API of the operating system.

Mostly all the Java classes of the library are contained in a single Jar file contained in the JRE or JDK distribution, called rt.jar. Contrary to other libraries used by an application, the Class Library contained in rt.jar is in the default Bootstrap Classpath How Classes are Found, and so does not have to be included in the Classpath declared for the application.

Conformance

Any Java implementation must pass the Java Technology Compatibility Kit tests for compliance.

Main Features

Main article: Java Platform, Standard Edition

Features of the Class Library are accessed through classes grouped by packages.

Licensing

See also: Free Java implementations and OpenJDK

Following their promise to release a fully buildable JDK based almost completely on free and open source code in the first half of 2007 [2], Sun released the complete source code of the Class Library under the GPL on May 8, 2007, except some limited parts that were licensed by Sun from third parties who did not want their code to be released under a free and open-source license.Open JDK is here!. Sun Microsystems (2007-05-08). Retrieved on 2007-05-09. Sun\'s goal is to replace the parts that remain proprietary and closed source with alternative implementations and make the Class Library completely free and open source.Since there\'s some encumbered code in the JDK, Sun will continue to use that code in commercial releases until it is replaced by fully-functional free and open-source alternatives.

As of October 2007, the parts of the Class Library that remain proprietary and closed-source (4% as of May 2007 Fitzsimmons, Thomas (2007-05-18). Plans for OpenJDK. Retrieved on 2007-05-22.) are Herron, David (2007-10-04). Plans for OpenJDK. Retrieved on 2007-10-09.:

Since the first May 2007 release, Sun Microsystems has released as Open-source or replaced by Open-source alternatives some of the encumbered code:

Alternative implementations

GNU Classpath is the other main free software class library for Java. Contrary to other implementations, it only implements the Class Library, and is used by many free Java runtimes (like Kaffe, SableVM, JamVM, CACAO).

Apache Harmony is another free software class library. Its aim is to also implement the other parts of the Java stack (Virtual Machine, Compiler, and other tools required for any Java implementation).

References

See also

External links

This article is licensed under the GNU Free Documentation License. It uses material from Wikipedia


Advertise with Us | Search Marketing | Help | Suggest a Site | Privacy Policy
© 2008 www.avoo.com. All rights reserved.