Murray\

Only of interest to nerds

February 6th, 2009 by Murray Barnes | Posted in Project

So, I’m working on a Java ME project just now, and doing some networking therein. And it’s fun how badly it’s documented. So, my code would run, but throw a Symbian Error -5120, and that’s all the information it would give me. The internets told me that this is a DNS problem. Fair enough. No indication of how to fix it.

This is how to fix it, using NetBeans. I don’t know how to do it in other environments, so don’t ask. First, right click on your project and go to properties

Properties

Then:

  1. Click Application Descriptor
  2. Select the API Permissions tab
  3. And click add

Then scroll down until you find the javax.microedition.io.Connector.http class(or whatever class you are using)

This will fix it. Why importing it is not enough for Java ME to let you use it, I have no idea, and why I don’t need to do this to access the Location API I have no idea. All I know is Java ME is driving me crazy.

No related posts.
  1. 3 Responses to “Only of interest to nerds”

  2. By KatieNo Gravatar on Feb 7, 2009

    Wow. You are a nerd.

  3. By WilfNo Gravatar on Feb 17, 2009

    Wow. You are a pro.

  4. By Konga ManNo Gravatar on Jun 10, 2009

    Java ME is on a boat motherfucker. Others have bugs, Java ME crashes motherfucker.

Post a Comment