Adding API Permissions

See Also

If your MIDlet suite needs to access certain protected APIs (for example, network connections), the MIDP 2.0 security architecture requires that the connection grant permission for access.

You can set the permission requests from the API Permissions page of the Project Properties page.

To Add API Permissions:

  1. Choose File > "active project name" properties.
    This opens the Project Properties dialog.
  2. Select API Permissions from the left pane.
  3. Click the Add Button.
  4. Choose an API from the dropdown list or enter an API name in the combo box.
    Permissions have the same naming structure as a Java class. For instance, javax.microedition.io.Connector.http is the permission for the HTTP protocol.
  5. Click OK.
  6. In the API Permissions table, check the Required box if you want installation to fail in the event that permission cannot be granted.

For more information, see "Security for MIDP Applications" in the MIDP 2.0 (JSR-118) specification, available at:

See Also
About API Permissions

Legal Notices