Search code examples
javajava-mej2mepolish

class file for java.util.Map not found


I got this error

class file for java.util.Map not found

on this line of code:

JSONObject json = new JSONObject(jsonString);

I am developing a J2ME project with J2ME polish 2.4, using the json-1.0.jar library. The project was working not until I updated J2ME polish from 2.3 to 2.4


Solution

  • As we know J2ME Does not support java.util.Map so Json lib that you are using internally using java.util.Map so you should use json library for J2ME.