Only of interest to nerds
February 6th, 2009 by Murray Barnes | Posted in ProjectSo, 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

Then:
- Click Application Descriptor
- Select the API Permissions tab
- 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.


3 Responses to “Only of interest to nerds”
By Katie
on Feb 7, 2009
Wow. You are a nerd.
By Wilf
on Feb 17, 2009
Wow. You are a pro.
By Konga Man
on Jun 10, 2009
Java ME is on a boat motherfucker. Others have bugs, Java ME crashes motherfucker.