The Java platform is a bundle of interdependent programs required to create and run programs using the Java programming language. Sun began work on the platform in 1992 and formally launched the programming language in 1995, after which its use grew rapidly across the computer industry. There are three different editions of the Java platform:[1]
As of December 2006, the Java platform (Standard Edition) was in its 6th major revision (version 6.0).
The Java platform's centerpiece is an execution engine, also known as the virtual machine or runtime environment, that has been implemented for most operating systems. The Standard Edition JVM has been implemented on Windows, Linux, Unix and Mac OS X. The Enterprise Edition can run on top of any Standard Edition JVM. The Micro Edition JVM has been implemented on Palm OS, Windows Mobile, and many mobile phones. As well, thousands of pre-written Java library classes, also called base classes, are available on each operating system. The Java runtime environment (JRE) and the Java class libraries make all computers look alike so that programs written in the Java programming language can run identically on all of them. Optional packages for the Standard Edition include packages for e-mail sending and retrieving, 3D graphics, video, sound, and Bluetooth. Optional packages for the Micro Edition include Bluetooth, Video, Web Serivces and database connection.
The platform consists of multiple programs, each of which provides a distinct portion of its overall capabilities. The essential components in the platform are the Java source code compiler, the Java class libraries, and the Java runtime environment. The Java source code compiler converts Java source code (files with an extension of .java) into Java bytecode (files with an extension of .class). The runtime environment is a special program that takes as input Java intermediate bytecode (.class files) for execution according to the rules laid out in the JavaTM Virtual Machine Specification, Second Edition[5].
The Java platform does not necessarily include an integrated development environment (IDE), although there is a Java runtime environment bundle available from Sun that includes the free NetBeans IDE. Several other free IDE's exist, including the widely used, free Eclipse IDE (which is open-source and can be used for several other languages besides Java).
Java bytecode is an intermediate language; Java bytecode programs are loaded and run by a Java Virtual Machine (JVM), also known as a Java Runtime Environment (JRE). JREs tend to be sophisticated; most of them implement the JVM specification by means of a just-in-time (JIT) compiler that, at runtime, converts intermediate bytecode into native machine code. JIT compilation occurs on a per method basis only the first time each method is called, after which the native code for that method remains cached in memory; this means that subsequent executions of that method run as fast as native programs. Java programs tend to "warm up" after they have been executing for awhile, and in some cases they execute as efficiently as native code after an initial startup period.
The Java platform also includes extensive libraries (pre-compiled into Java bytecode) containing reusable code, as well as numerous ways for Java applications to be deployed, including being embedded in a web page as an applet, on a desktop machine for a single user, on a web server as a servlet (returning "dynamic" information to web browsers), or on a web server as a web service endpoint (procedure callable across a network from any kind of platform). There are several other components as well.
When downloading Java, users must select their current operating system, and then choose either the Java Runtime Edition (JRE) or Java Development Kit (JDK) version. The JRE contains only the runtime (virtual machine) and pre-compiled libraries; this is all that is needed to run Java programs on a given operating system. The JDK also contains the Java source code compiler and other utilities needed by programmers when developing Java programs.
Micro Edition applications are targeted for a configuration and profile. Current combinations include
The CLDC is targeted for less powerful devices such as "feature phone" mobile phones, while the CDC is targeted for more powerful devices, such as PDAs, "smartphones" and TV set top boxes. However, almost all devices currently use the CLDC.
The CLDC 1.0/MIDP 1.0 were criticized by programmers for being a lowest-common-denominator approach. Notably absent were access to the device's address book, datebook and to-do list, which is important for many mobile applications. It was difficult to write a non-trivial application that had the ease-of-use of native applications. This and other reasons lead mobile phone manufacturers to provide non-standard libraries (packages) to provide more direct access to system resources. Applications which use these non-standard libraries are not portable to other Micro Edition devices. The market for Micro Edition applications is thus "fragmented" -- divided into device- or manufacturer-specific groups. Currently, significant Mobile Edition Java applications that are "write-once, run anywhere" are uncommon.
The CLDC 1.1/MIDP 2.0 provided significant new functionality, and optional libraries give access to the address book, datebook, to-do list and other features such as Bluetooth. As of 2008, this has not yet triggered a convergence of Mobile Edition applications.
At the 2007 JavaOne Conference, James Gosling (the father of Java, and a Vice President of Sun Microsystems, the biggest corporate supporter of Java) stated that he foresees Standard Edition replacing Micro Edition in mobile devices, as they grow more powerful. He acknowledges this convergence will probably take many years.
See a Comparison of Java and .NET.