Java Class Library
From Seo Wiki - Search Engine Optimization and Programming Languages
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.
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 , and so does not have to be included in the Classpath declared for the application.
Any Java implementation must pass the Java Technology Compatibility Kit tests for compliance.
- Template:Javadoc:SE contains fundamental classes and interfaces closely tied to the language and runtime system.
- I/O and networking: access to the platform file system, and more generally to networks, is provided through the Template:Javadoc:SE, Template:Javadoc:SE, and Template:Javadoc:SE packages.
- Mathematics package: Template:Javadoc:SE provides regular mathematical expressions, as well as arbitrary-precision decimals and integers numbers.
- Collections and Utilities : provide built-in Collection data structures, and various utility classes, for Regular expressions, Concurrency, logging and Data compression.
- GUI and 2D Graphics: the Template:Javadoc:SE package supports basic GUI operations and binds to the underlying native system. It also contains the 2D Graphics API. The Template:Javadoc:SE package is built on AWT and provides a platform independent widget toolkit, as well as a Pluggable look and feel. It also deals with editable and non-editable text components.
- Sound: provides interfaces and classes for reading, writing, sequencing, and synthesizing of sound data.
- Text: the Template:Javadoc:SE package deals with text, dates, numbers, and messages.
- Image package: Template:Javadoc:SE and Template:Javadoc:SE provide APIs to write, read, and modify images.
- XML: built-in classes handle SAX, DOM, StAX, XSLT transforms, XPath, and various APIs for Web services, as SOAP protocol and JAX-WS.
- CORBA and RMI APIs, including a built-in ORB
- Security and Cryptography
- Databases: access to SQL databases is provided through the Template:Javadoc:SE package.
- Access to Scripting engines: the Template:Javadoc:SE package gives access any Scripting language that conforms to this API.
- Applets: Template:Javadoc:SE allows applications to be downloaded over a network and run within a guarded sandbox
- Java Beans: Template:Javadoc:SE provides ways to manipulate reusable components.
Following their promise to release a fully buildable JDK based almost completely on free and open source code in the first half of 2007 , 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. 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 the first May 2007 release, Sun Microsystems, with the help of the community, has released as Open-source or replaced with Open-source alternatives almost all the encumbered code:
- All the audio engine code, including the software synthetizer, has been released as Open-source. The closed-source software synthesizer has been replaced by a new synthesizer developed specifically for OpenJDK called Gervill,
- All cryptography classes used in the Class library have been released as Open-source,
- The code that scales and rasterizes fonts has been replaced by FreeType 
- The native color management system has been replaced by LittleCMS . There is a pluggable layer in the JDK, so that the commercial version can use the old color management system and OpenJDK can use LittleCMS.
- The anti-aliasing graphics rasterizer code has been replaced by the Open-sourced Pisces renderer used in the phoneME project. This code is fully functional, but still needs some performance enhancements ,
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).
- Java Platform, Standard Edition
- List of Java APIs
- Free Java implementations
- Standard library
- Java applet
- ↑ How Classes are Found
- ↑ http://www.sun.com/software/opensource/java/faq.jsp#b4
- ↑ "Open JDK is here!". Sun Microsystems. 2007-05-08. http://mail.openjdk.java.net/pipermail/announce/2007-May.txt. Retrieved 2007-05-09.
- ↑ 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.
- ↑ Fitzsimmons, Thomas (2007-05-18). "Plans for OpenJDK". http://fitzsim.org/blog/?p=17. Retrieved 2007-05-22.
- ↑ Angel, Lillian (2008-03-13). "OpenJDK to replace IcedTea in Fedora 9". http://langel.wordpress.com/2008/03/13/openjdk-in-fedora-9/. Retrieved 2008-04-05.
- ↑ Wade, Karsten (2008-03-13). "OpenJDK in Fedora 9!". redhatmagazine.com. http://developer.redhatmagazine.com/2008/03/12/openjdk-to-replace-icedtea-in-fedora-9/. Retrieved 2008-04-05. "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."
- ↑ Herron, David (2007-10-04). "Plans for OpenJDK". http://weblogs.java.net/blog/robogeek/archive/2007/10/openjdk_encumbr.html. Retrieved 2007-10-09.
- ↑ 9.0 9.1 9.2 "OpenJDK 6 b10 source posted". 2008-05-30. http://mail.openjdk.java.net/pipermail/jdk6-dev/2008-May/000058.html. Retrieved 2008-06-01.
- ↑ audio-engine project page
- ↑ "Gervill - Software Synthesizer". https://gervill.dev.java.net/. Retrieved 2008-06-01.
- ↑ "Crypto has been added to OpenJDK". 2007-09-27. http://mail.openjdk.java.net/pipermail/security-dev/2007-September/000015.html. Retrieved 2007-10-07.
- ↑ font-scaler projectpage
- ↑ 14.0 14.1 14.2 Java2D project page
- ↑ "Freetype font rasteriser". 2007-08-07. http://mail.openjdk.java.net/pipermail/font-scaler-dev/2007-August/000011.html. Retrieved 2007-11-24.
- ↑ phoneme.dev.java.net/
- ↑ graphics-rasterizer project page
- ↑ Graham, Jim (2007-10-03). "Open Source rasterizer". Sun Microsystems. http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000078.html. Retrieved 2007-05-09.
- Java SE Main page
- Java SE API documentation
- Java software development kits (status as of August 2006[update]):