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...  javax/speech/EngineMode: Cannot create class in system package
Previous Previous
 
Next Next
New Post 5/15/2008 10:39 AM
  CDN Host
20 posts
No Ranking


javax/speech/EngineMode: Cannot create class in system package 

Originally Posted by rajeshkanattu:

hey,

I received an Early Release through Conversay, started playing around the samples. It all looks good.

I was trying to build and run "HelloSynthesis" sample using Sun Java Wireless Toolkit 2.5 for CLDC by adding the external lib (jsapi2.jar). It builds without any problem, but when I try to run through emulator, it gives me "Cannot create class in system package" error. I am stuck here. Any clue to resolve this??

I am pasting the build and error log for your reference...

___________________

Project "HelloSynthesis" Loaded

Project settings saved

Build "HelloSynthesis"

Build complete

Running with storage root DefaultGrayPhone

Running with locale: English_United States.1252

Uncaught exception java/lang/NoClassDefFoundError: javax/speech/EngineMode: Cannot create class in system package.

Execution completed.

 
New Post 5/15/2008 10:43 AM
  CDN Host
20 posts
No Ranking


Re: javax/speech/EngineMode: Cannot create class in system package 

Originally Posted by SpecLead:

The Reference Implementation uses native methods that must be built into the emulator using the KNI protocol for CLDC. As a result, the examples currently only work in the emulator supplied with the Early Release. Also, in your log below, javax.speech.EngineMode is not found since packages beginning with javax must go on the bootclasspath. You might get further with that change, but ultimately the example will not work in the toolkit due to the required native methods.

We are currently talking to the Sun Wireless Tollkit people about the possibility of adding JSR 113 to the toolkit. There are no guarantees that this will happen, but if it does then the examples will run as might have been expected. We are enthused about the possibility of integration of JSR 113 with the toolkit because it will increase usability, safety, and accessibility on device platforms.

 
New Post 5/15/2008 10:50 AM
  CDN Host
20 posts
No Ranking


Re: javax/speech/EngineMode: Cannot create class in system package 

Originally Posted by rajeskanattu:

Hi,

Thanks very much for the clarification.

I tried to run the hellosynthesis app by copying the jad and jar file from the examples\hellosynthesis\dist folder. But when i try to run the application, I am getting "application Error" and exit the app.

I am trying on Sony Ericsson K750i.

Can you tell me how do i try out the samples in my device? I have successfully run the applications which I have written using the Sun JavaWireless Took kit 2.5

Re: Re: Re: javax/speech/EngineMode: Cannot create class in system package

Originally Posted by SpecLead:

Because of the native code requried for the Reference Implementation, we don't understand how applications can run in Sun's Wireless Took Kit 2.5. Are you sure that you are not executing the mulator that comes with the Early Release?

Also because of the native code, the applications should not, unfortunately, run on devices at this time. We are working with carious vendors to include JSR 113 with deivce-based JavaMe implementations (KVM's), but nothing is available yet (correction....we now have an optimized device for purchase aready to developed).

Note that we do have the system running on devices that use Personal Java where we can tie in the native code with JNI. However, our primary delivery target is for JavaME with a KVM (the vast majority of devices).

 

 
New Post 6/28/2008 5:09 PM
  sara.morsy
3 posts
No Ranking


Re: javax/speech/EngineMode: Cannot create class in system package 

Hi,

I tried running HelloWorld example using Eclipse 3.1.2 but I got the following error:

Unable to create MIDlet org.jsapi2.examples.helloworld.HelloWorld

java.lang.ClassNotFoundException: org.jsapi2.examples.helloworld.HelloWorld

And when I tried it with NetBeans 6.1, compiling gave me the following error:

Error preverifying class com.sun.cldc.i18n.j2me.Conv

Error: native methods should not appear

Anyone can help me with these errors?

 

 
New Post 7/2/2008 5:34 PM
  SpecLead
5 posts
No Ranking


Re: javax/speech/EngineMode: Cannot create class in system package 

Hi,

Thanks for your input.

We don't provide support examples for Eclipse or NetBeans at this time.  However, it should be possible to use these IDEs in conjunction with the provided examples.

In Eclipse, for example, it is possible to run Ant scripts from within the IDE.  This is the easiest way to build and run at this time.  Please see the respective build.xml file for complete details on each example.

Additionally, you can more directly build and test with the SE-based examples (e.g., j2sehello and j2sesynthesis).

We are somewhat limited on options for the ME side due to the use of native code and the requirement to use KNI (as opposed to the more general JNI).  Thus, use of the supplied emulator for ME (with JSR 113 support) is required.

Does this help?

Best regards,

SpecLead

 

 
Previous Previous
 
Next Next
  CDN Forum  Application Dev...  Application Dev...  javax/speech/EngineMode: Cannot create class in system package