Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Working Groups » Pulsar » javax.microedition.pim.ContactList.read lack
javax.microedition.pim.ContactList.read lack [message #528244] Mon, 19 April 2010 15:36 Go to next message
No real name is currently offline No real name
Messages: 4
Registered: April 2010
Junior Member
I need to add "MIDlet-Permissions-Opt: javax.microedition.pim.ContactList.read" into
my Manifest.mf and midlet.jad files.

There is no any javax.microedition.pim.* security permissions in the "Security Permissions" list
(Application Descriptor->Signing->Optional Permissions->Add).

When i try to modify the value of the MIDlet-Permissions-Opt key on the "User Defined" tab
then Eclipse removes my settings using options from the "Signing" tab.

How to add this permissions?
Is it possible to add them into the "Security Permissions" list?

PS: The list of those six permissions can be found on http://developers.sun.com/mobility/apis/pim/pim3/

My environment:
Pulsar for Mobile Java Developers (Version: 1.2.1.20090918-0703 Build id: 20090920-1017)
Sun JavaME SDK 3.0
Nokia Series 40 6th Edition SDK v1.0
Re: javax.microedition.pim.ContactList.read lack [message #528317 is a reply to message #528244] Tue, 20 April 2010 03:26 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 4
Registered: April 2010
Junior Member
Ok. I solved my trouble in this way:

1. in eclipse\plugins\org.eclipse.mtj.core_1.1.0.v200909181641.jar change file plugin.xml

From:
 <extension
       id="jsr75permissions"
       point="org.eclipse.mtj.core.securitypermission">
    <class
          name="javax.microedition.io.file.FileConnection">
       <permission
             name="javax.microedition.io.Connector.file.write">
       </permission>
       <permission
             name="javax.microedition.io.Connector.file.read">
       </permission>
    </class>
 </extension>


To:
 <extension
       id="jsr75permissions"
       point="org.eclipse.mtj.core.securitypermission">
    <class
          name="javax.microedition.io.file.FileConnection">
       <permission
             name="javax.microedition.io.Connector.file.write">
       </permission>
       <permission
             name="javax.microedition.io.Connector.file.read">
       </permission>
    </class>
    <class
          name="javax.microedition.pim">
       <permission
             name="javax.microedition.pim.ContactList.read">
       </permission>
       <permission
             name="javax.microedition.pim.ContactList.write">
       </permission>
       <permission
             name="javax.microedition.pim.EventList.read">
       </permission>
       <permission
             name="javax.microedition.pim.EventList.write">
       </permission>
       <permission
             name="javax.microedition.pim.ToDoList.read">
       </permission>
       <permission
             name="javax.microedition.pim.ToDoList.write">
       </permission>
    </class>
 </extension>


2. delete eclipse cache file eclipse\configuration\org.eclipse.core.runtime\.mainData.N (where N is a digit)

These steps will add all six javax.microedition.pim.* permissions into the Security Permissions list.

However the Scan functions does not work.
icon14.gif  Re: javax.microedition.pim.ContactList.read lack [message #651900 is a reply to message #528317] Tue, 01 February 2011 18:23 Go to previous message
Pang  is currently offline Pang
Messages: 1
Registered: February 2011
Junior Member
Thank you for this post! Great job!
Previous Topic:Launch configuration EclipseStarter
Next Topic:Pulsar missing emulator, will not install SDKs
Goto Forum:
  


Current Time: Fri Aug 22 21:39:43 EDT 2014

Powered by FUDForum. Page generated in 0.02266 seconds