Generic system properties

The following table describes the generic system properties used by Series 40 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:

Nokia6700c-1/10.50

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 Locale API 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 COM1:

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

Defined in javax.microedition.io.CommConnection.

microedition.hostname

The IP address of the device.

In Series 40, the IP address can be either an IPv4 or IPv6 address. If it is an IPv6 address, it is enclosed in square brackets. If the IP address is not known null is returned.

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