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.
API Permissions are only available for projects whose profile version is set to MDP 2.0.
To Add API Permissions:
Choose File > "active
project name" properties.
This opens the Project Properties dialog.
Select API Permissions from the left pane.
Click the Add Button.
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.
Click OK.
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: