javajava-mejava-wireless-toolkit

Application not Authorized to access restricted API (J2ME)


I'm coding an SMS application in J2ME and on the server side of the application the line below throws the exception:

java.lang.SecurityException: Application not authorized to access the restricted API

This is the offending line of code:

sender = Sender.getSInstance();

Solution

  • Read this:Understanding MIDP 2.0's Security Architecture. It might help you. Also read this post.