Generic system properties

The following table describes the generic system properties used by Series 40 and Symbian devices. To retrieve a system property value, call the java.lang.System.getProperty method.

Table: Generic system properties

System property

Description

Value

microedition.platform

Information about the host platform or device. This includes information about the device model and version, platform version, and Java Runtime version.

Note: Series 40 does not support sw_platform, sw_platform_version, or java_build_version.

<DeviceModel>-[<ModelVersion>] / <FirmwareVersion> / sw_platform=<PlatformName>; sw_platform_version=<PlatformVersion>; java_build_version=<JavaRuntimeVersion>

For example:

  • Series 40

    Nokia6700c-1/10.50

  • Symbian

    Nokia5800d-1/30.0.011/sw_platform=S60; sw_platform_version=5.0; java_build_version=1.3.4

microedition.encoding

Default character encoding used by the platform. Unless a MIDlet defines a specific character encoding for handling character streams, APIs use the default character encoding.

ISO-8859-1

microedition.configuration

Name and version of the supported configuration.

CLDC-1.0 or CDLD-1.1

microedition.profiles

Name and version of the supported profile.

MIDP devices return MIDP-<x.x>

For example:

MIDP-2.1

microedition.locale

The current locale of the device. This is based on the currently selected user interface language on the device.

Note: The set of locales supported by the device depends on the languages and region.

<language>-<COUNTRY>

For example:

en-US

microedition.commports

Comma-separated list of serial port IDs.

To open a serial port connection, use a serial port ID together with the comm: prefix as the URL string for the connection. For example, to connect to the serial port com0:

CommConnection cc = (CommConnection)Connector.open("comm:com0");

Defined in javax.microedition.io.CommConnection.

microedition.hostname

The local hostname, if it is available.

localhost

microedition.jtwi.version

Version number of the supported JTWI specification

1.0

microedition.msa.version

Version number of the supported MSA specification or subset of MSA.

1.1-SUBSET