×

Discussion Board

Results 1 to 8 of 8

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    java.lang.SecurityException javax.microedition.location.Location

    Hi
    I just signed my application with thawte. I run my program to trigger the GPS device, it warns me with an exception message java.lang.SecurityException: Permission = javax.microedition.location.Location.
    Previously, the program was working when I didn't sign it

    Please anyone tell me what is happening

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: java.lang.SecurityException javax.microedition.location.Location

    Which phone are you using? Is it a branded phone for an operator?
    What permissions are you requesting in the JAD file?

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: java.lang.SecurityException javax.microedition.location.Location

    Quote Originally Posted by honest_success View Post
    Which phone are you using? Is it a branded phone for an operator?
    What permissions are you requesting in the JAD file?
    I am using Nokia N95 8GB
    It is not a branded phone
    I don't understand what are permissions for JAD file, is it set from API permissions tab of Netbean from Properties ?
    Last edited by snoopyAU; 2008-10-13 at 13:18.

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: java.lang.SecurityException javax.microedition.location.Location

    Hi,
    Yeah you are right..from this tag you can add all the permissions.
    Thanks
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: java.lang.SecurityException javax.microedition.location.Location

    I tried to add the API javax.microedition.location.Location and tick as required column. when I run the application, it works fine but it asks me for permission of using GPS device. I already sign my code how come it still asks me

  6. #6
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    89

    Re: java.lang.SecurityException javax.microedition.location.Location

    You will now need to goto App.Manager on your N95. scroll to your application, select open. This will show you all security permissions available. Since your application is now signed you can now choose Always allowed option for Location.

    For more on Java Signed please read this document
    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html

    or refer to Forum Nokia JavaME Developers Library.

  7. #7
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: java.lang.SecurityException javax.microedition.location.Location

    Hi,
    Yeah thats the way after doing it, application will never ask..
    Thanks.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  8. #8
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: java.lang.SecurityException javax.microedition.location.Location

    Thanks all!!!. It works for me already

Similar Threads

  1. java.lang.SecurityException:
    By vivartpandey in forum Mobile Java General
    Replies: 2
    Last Post: 2008-07-17, 07:28
  2. java.lang.SecurityException error
    By leonner in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-04-14, 03:35
  3. java.lang.SecurityException
    By maneeshv6 in forum Mobile Java General
    Replies: 9
    Last Post: 2008-03-25, 20:23
  4. java.lang.securityexception error
    By fuatsungur in forum Mobile Java Tools & SDKs
    Replies: 15
    Last Post: 2008-02-20, 16:15
  5. unusual java.lang.SecurityException
    By atantc in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-07-16, 20:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×