Skip to main content

Incorrect result by Emulators of WTK

4 replies [Last post]
plitanium
Offline
Joined: 2007-10-17
Points: 0

Hi everybody..

So i hv a problem.. but i cant' figure out where...
I downloaded a sample code for my chat application (bluetooth+j2me) and its working fine with Nokia N72.
But when i loaded the code in WTK there are a lot of error messages and the emulator is also not running it (displaying an error message)

I dont know the reason for this anamolous behaviour and it would be appreciated if somebody could do so and please explain it to me.

P.S: Merry Xmas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sfitzjava
Offline
Joined: 2003-06-15
Points: 0

When you loaded your code to the WTK did you setup a project, and import the jad/jar file, or did you just copy the source into the src directory?

The next thing is does the code use any special Nokia APIs. I know that Nokia as well as many other manufacturers and operators have additional APIs they may use in their code that are not standard for the WTK. (BTW: Which version of the WTK are you using and for what OS?)

The only main item that might be getting in your way is have you setup the project for Bluetooth/OBEX support (jsr82)? This is done on the settings mention option, in the "API Selection" section. You will need to have a MIDP2 or JTWI target platform, and you may want to set CLDC 1.1 configuration as well on this same screen. But without the Additional APIs for JSR82 selected there would be lots of compile errors.

Let us know how it goes.

-Shawn

plitanium
Offline
Joined: 2007-10-17
Points: 0

Hi Shawn,
Thanx a lot... Ur solution did work out. U solved a big problem for me...Thanx^100 :)
Though i did get sum warnings... but the code ran exactly as it actually does in N72...
Just one more thing to ask u and anybody reading this...
Does the emulator have access to the bluetooth device like a dongle...?? Coz i dont have 2 such phones for testing the application and it will also lead to wastage of time... So can the emulator behave real as far as bluetooth is concerned??? (like communication b/w my phone and the emulator)

sfitzjava
Offline
Joined: 2003-06-15
Points: 0

I don't have hands-on knowledge of the WTK bluetooth support, however give the following link, and my SMS experience with the WTK I would say the WTK can't talk directly with a Bluetooth dongle or device connected to the desktop system.
http://forum.java.sun.com/thread.jspa?threadID=5225664&messageID=9979520

However if you go into the menu edit->preferences you will be able to configure the emulator to fake bluetooth support.

This is not of much use unless you are running 2 emulators and communicating between the two emulators. That should be enough to help validate your code and minor debugging, but in the end you will need to have real devices to test with I fear. But to hook real equipment in and have the emulator work with it, I have not seen anywhere stating how that could be done.
(That would be cool!!! and if anyone on the WTK development team for SUN is reading this.. Please think about supporting something like that.) :)

-Shawn

Richard Gregor

Hi Shawn,

Thank you for your thoughts. We will consider supporting bluetooth
connection between the emulator and the real device for next version of WTK.
Regards,
WTK Team

meinterest@mobileandembedded.org wrote:
> I don't have hands-on knowledge of the WTK bluetooth support, however give the following link, and my SMS experience with the WTK I would say the WTK can't talk directly with a Bluetooth dongle or device connected to the desktop system.
> http://forum.java.sun.com/thread.jspa?threadID=5225664&messageID=9979520
>
> However if you go into the menu edit->preferences you will be able to configure the emulator to fake bluetooth support.
>
> This is not of much use unless you are running 2 emulators and communicating between the two emulators. That should be enough to help validate your code and minor debugging, but in the end you will need to have real devices to test with I fear. But to hook real equipment in and have the emulator work with it, I have not seen anywhere stating how that could be done.
> (That would be cool!!! and if anyone on the WTK development team for SUN is reading this.. Please think about supporting something like that.) :)
>
> -Shawn
> [Message sent by forum member 'sfitzjava' (sfitzjava)]
>
> http://forums.java.net/jive/thread.jspa?messageID=251647
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".