Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » How to set Security-Level for the Emulator?
How to set Security-Level for the Emulator? [message #30163] Mon, 25 May 2009 07:03 Go to next message
Eclipse UserFriend
Originally posted by: elwood.agouros.de

Hi,

I ran into another problem. The midlet I am writing wants to do an
HTTP-Connection. If I start the emulator from Eclipse it hangs at the
'Wants to use airtime' question. If I use ktoolbar and set the
permission-level appropriately it is working. Can I set the permissions
of the midlet somewhere in MTJ?

Regards,

Konstantin
Re: How to set Security-Level for the Emulator? [message #30199 is a reply to message #30163] Mon, 25 May 2009 12:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: craigjunk.setera.org

Have you set the MIDlet-Permissions in your project's JAD editor?
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/editors/jad_editor/optional.html

If so, you will want to set the correct security domain in the Emulation
preferences for the launch configuration.
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/launchers/wireless_toolkit/launcher_em ulation.html

Craig

Konstantin Agouros wrote:
> Hi,
>
> I ran into another problem. The midlet I am writing wants to do an
> HTTP-Connection. If I start the emulator from Eclipse it hangs at the
> 'Wants to use airtime' question. If I use ktoolbar and set the
> permission-level appropriately it is working. Can I set the permissions
> of the midlet somewhere in MTJ?
>
> Regards,
>
> Konstantin
Re: How to set Security-Level for the Emulator? [message #30341 is a reply to message #30199] Mon, 25 May 2009 18:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: craigjunk.setera.org

This is the standard Eclipse launch configuration dialog. It is
accessible via Run... or Debug...
>> If so, you will want to set the correct security domain in the Emulation
>> preferences for the launch configuration.
>> http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/launchers/wireless_toolkit/launcher_em ulation.html
>>
> How do I get to this dialogue? This looks just like what I was searching
> for.
Re: How to set Security-Level for the Emulator? [message #30412 is a reply to message #30341] Mon, 25 May 2009 19:15 Go to previous message
Eclipse UserFriend
Originally posted by: craigjunk.setera.org

That dialog item translates down to the -Xdomain: command line parameter
for the WTK. Thus, if you select "Maximum", it is equivalent to
specifying "-Xdomain:Maximum" on the command-line invocation.

On 5/25/09 2:04 PM, Konstantinos Agouros wrote:
> On Mon, May 25, 2009 at 01:30:08PM -0500, Craig Setera wrote:
>
>> This is the standard Eclipse launch configuration dialog. It is accessible
>> via Run... or Debug...
>>
> Yeah found it. However (but this might be an issue with the WTK
> installation) While I set it to maximum, the emulator still gets stuck
> in the question if it is ok to use Airtime. Do You know, where the
> Emulator uses the setting from the dialogue? Is it saved somewhere or
> put in a commandline option. If the latter. Does the user that the
> emulator is running as need write-permissions somewhere in the WTK
> directories?
>
> Regards,
>
> Konstantin
>
>>>> If so, you will want to set the correct security domain in the Emulation
>>>> preferences for the launch configuration.
>>>> http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/launchers/wireless_toolkit/launcher_em ulation.html
>>>>
>>>>
>>> How do I get to this dialogue? This looks just like what I was searching
>>> for.
>>>
>
>
Re: How to set Security-Level for the Emulator? [message #573143 is a reply to message #30163] Mon, 25 May 2009 12:04 Go to previous message
Craig Setera is currently offline Craig SeteraFriend
Messages: 54
Registered: July 2009
Member
Have you set the MIDlet-Permissions in your project's JAD editor?
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/editors/jad_editor/optional.html

If so, you will want to set the correct security domain in the Emulation
preferences for the launch configuration.
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/launchers/wireless_toolkit/launcher_em ulation.html

Craig

Konstantin Agouros wrote:
> Hi,
>
> I ran into another problem. The midlet I am writing wants to do an
> HTTP-Connection. If I start the emulator from Eclipse it hangs at the
> 'Wants to use airtime' question. If I use ktoolbar and set the
> permission-level appropriately it is working. Can I set the permissions
> of the midlet somewhere in MTJ?
>
> Regards,
>
> Konstantin
Re: How to set Security-Level for the Emulator? [message #573281 is a reply to message #30199] Mon, 25 May 2009 18:30 Go to previous message
Craig Setera is currently offline Craig SeteraFriend
Messages: 54
Registered: July 2009
Member
This is the standard Eclipse launch configuration dialog. It is
accessible via Run... or Debug...
>> If so, you will want to set the correct security domain in the Emulation
>> preferences for the launch configuration.
>> http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/launchers/wireless_toolkit/launcher_em ulation.html
>>
> How do I get to this dialogue? This looks just like what I was searching
> for.
Re: How to set Security-Level for the Emulator? [message #573348 is a reply to message #30341] Mon, 25 May 2009 19:15 Go to previous message
Craig Setera is currently offline Craig SeteraFriend
Messages: 54
Registered: July 2009
Member
That dialog item translates down to the -Xdomain: command line parameter
for the WTK. Thus, if you select "Maximum", it is equivalent to
specifying "-Xdomain:Maximum" on the command-line invocation.

On 5/25/09 2:04 PM, Konstantinos Agouros wrote:
> On Mon, May 25, 2009 at 01:30:08PM -0500, Craig Setera wrote:
>
>> This is the standard Eclipse launch configuration dialog. It is accessible
>> via Run... or Debug...
>>
> Yeah found it. However (but this might be an issue with the WTK
> installation) While I set it to maximum, the emulator still gets stuck
> in the question if it is ok to use Airtime. Do You know, where the
> Emulator uses the setting from the dialogue? Is it saved somewhere or
> put in a commandline option. If the latter. Does the user that the
> emulator is running as need write-permissions somewhere in the WTK
> directories?
>
> Regards,
>
> Konstantin
>
>>>> If so, you will want to set the correct security domain in the Emulation
>>>> preferences for the launch configuration.
>>>> http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.do c.user/html/reference/launchers/wireless_toolkit/launcher_em ulation.html
>>>>
>>>>
>>> How do I get to this dialogue? This looks just like what I was searching
>>> for.
>>>
>
>
Previous Topic:cannot import my WTK folder in the J2ME Device Management folder
Next Topic:fillarc
Goto Forum:
  


Current Time: Sat Apr 20 14:39:43 GMT 2024

Powered by FUDForum. Page generated in 0.03310 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top