Conversay Developers Forum

NOTICE!

Use of the Conversay Developers Network (CDN Forum) requires registration with this site.  Click HERE to register now.

 
  CDN Forum  Application Dev...  Application Dev...  JSAPI 2 with Java ME 3.0
Previous Previous
 
Next Disabled
New Post 2/18/2010 8:30 PM
  RenukaDevi
1 posts
No Ranking


JSAPI 2 with Java ME 3.0 

I tried to run an example speech recognition application in J2me 3.0 platform. I got this error:

"Exception: The application has unexpectedly quit: Contact application provider to resolve the issue.

java/util/EventListener"

Can someone help me?

 
New Post 2/18/2010 10:05 PM
  Dirk Schnelle
17 posts
No Ranking


Re: JSAPI 2 with Java ME 3.0 

Hi,

the release candidate had a design flaw with this interface. It is not part of J2ME. This is fixed in the final release, which is still not available for download as a RI.

But to explore it mor:

Maybe you could describe what you did?

Dirk

 
New Post 2/19/2010 8:01 AM
  Earl.Key
3 posts
No Ranking


Re: JSAPI 2 with Java ME 3.0 

As Dirk indicated, the download will not work on JavaME. The reason is because the JSAPI2.jar that you downloaded includes at least 2 and possibly 3 classes that are unsupported on JavaME: java.Locale.class, EventListener.class (and probably EventObject.class). This is terminal to your app because ResultEvent is an extension of EventListener -- any reference at all to ResultEvent will throw an exception (even including the method event will result in an exception). Until JSAPI2 is actually released, it is unlikely that developers will be able to write a self-contained JavaME speech recognition app that runs only on the mobile device.

 
Previous Previous
 
Next Disabled
  CDN Forum  Application Dev...  Application Dev...  JSAPI 2 with Java ME 3.0