Wednesday, July 28, 2010

InvalidJadException: Reason = 22 emulator doesn't start in J2Me

When a project is copied without creating,the problem occurs InvalidJadException.

Do the following and remove the exception.
  1. Go to nbproject folder in your project.Under this folder find "project.properties" file.
  2. Edit "project.properties" file.Search for "manifest.midlets="
  3. Set the value of "manifest.midlets=MIDlet-1: MidletName, , PackageName\n"
For my project i set the value to
manifest.midlets=MIDlet-1: SampleMidlet, , com.j2me.mobile.sample.SampleMidlet\n

Spaces are compulsory.Place the space after : and before packagename.\n is to indicate to go to next line if you are editing in a notepad or editplus.

No comments:

Post a Comment