![]() |
Release Notes |
J2ME CDC Porting Guide |
This is the first release of the Foundation Profile. The Foundation Profile is a superset of the J2ME Connected Device Configuration (CDC).This profile is intended for use with devices requiring a complete implementation of the Java virtual machine, up to and including the entire Java 2 Platform, Standard Edition (J2SE). Typical implementations will use some subset of the Standard Edition, depending on the additional profiles supported.
Java Community Process
This release of the Foundation Profile implements the current Foundation Profile specification. The Foundation Profile specification is undergoing participant review in the Java Community Process. The Foundation Profile specification and implementation are subject to change.
Related Documents
Related documents include:
- J2ME Foundation Profile API Specification
Download the API specification from the Foundation Profile distribution Web site. After you unzip the downloaded file, use your Web browser to view the start page in install/javadoc/index.html under the directory in which you unzipped the downloaded file.- J2ME CDC Porting Guide
- The Java Language Specification
- The Java Virtual Machine Specification, Second Edition
The Foundation Profile v1.0 Alpha is based on the J2SE v1.3. The following classes in the J2ME Foundation Profile differ from the same-name classes in the J2SE, as described below.
- java.lang.ClassLoader
- The following line was removed:
import java.io.StringWriter;
There is no change in behavior, as ClassLoader does not use the imported class.
- java.lang.SecurityManager
- The java.awt dependencies have been removed, as the Foundation Profile does not include the java.awt package. Hard-coded references to java.awt were changed to use reflection to determine if the java.awt package is present. (It could be present in another profile.)
If java.awt is present, there is no difference in SecurityManager behavior compared to the J2SE.
If java.awt is not present:
- checkTopLevelWindow(Object window) returns false.
- checkSystemClipboardAccess() throws SecurityException("AWT not available").
- checkAwtEventQueueAccess() throws SecurityException("AWT not available").
- java.text.resources.LocaleElements
- The java.awt dependency has been removed, as the Foundation Profile does not include the java.awt package. Specifically, the following line is commented out:
import java.awt.ComponentOrientation;
The following line is also commented out:
{ "Orientation", ComponentOrientation.LEFT_TO_RIGHT },
If java.awt is present through an additional profile, LocaleElements will not have access to the ComponentOrientation resource.
- java.text.resources.LocaleElements_en_US
- The java.awt dependency has been removed, as the Foundation Profile does not include the java.awt package. Specifically, the following line is commented out:
import java.awt.ComponentOrientation;
There is no change in behavior, as LocaleElements_en_US does not use the imported class.
- sun.net.www.ParseUtil
- The following line was removed:
import java.util.BitSet;
There is no change in behavior, as ParseUtil does not use the imported class.
The Foundation Profile makes the following changes to the CDC class library:
- The Foundation Profile contains the complete java.text package, with only the dependencies on java.awt removed.
- The method sun.net.www.protocol.file.FileURLConnection.getInputStream() is identical to the J2SE method of the same name. Thus, directory listings viewed in a Web browser are sorted alphabetically, as with the J2SE.
There are no known problems specific to the Foundation Profile at this time. However, Foundation Profile users may encounter known problems in the CDC. See the J2ME CDC Release Notes.
Copyright © 2000
Sun Microsystems, Inc.
All Rights Reserved.
Please send comments to: jcp-foundation-comments@eng.sun.com |
![]() |