Skip to main content

WindowsCE

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

Hi all,

I've been struggling to port a piece of code written in J2ME (for Symbian OS) to Windows CE, so that it runs on a device with the windows ce. Kindly Help on how to do so.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

plitanium,

Sorry for the slow reply. Just returned from India ...

Full-blown XML processing (including validation, etc) is difficult on mobile devices due to the resources involved. But if you don't need full processing then something like our Mobile Ajax libraries will work well for you. Check out:

https://meapplicationdevelopers.dev.java.net/mobileajax.html

Look at the JSON parser library which also does basic XML. All you need to do is drop that library into your application jar file and off you go. Look at one of the Mobile Ajax sample applications to see how to use the library.

Let me know if that helps,

-- Terrence

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Ah, ok. A MIDlet by definition has no knowledge of OS-specific libraries ... it can only use functionality present via JSRs. So if your WinCE platform supports the same JSRs as your Symbian platform there is no issue.

As for WTK, it supports pretty much most JSRs that have been finalized so it is very likely that the MIDlet will work on WTK in any case.

I'd say give it a try and run your MIDlet on WinCE and WTK and let me know if you have problems.

-- Terrence

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

Hi Terrence,

Is the WTK able to handle the xml data that is associated with the src??
If yes, how to include it in the project folder??
If yes, Please suggest some other xml enabling emulators...

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi gain,

What kind of Java ME application is it? A MIDlet or an Xlet (i.e. is it CLDC/MIDP-based or CDC-based)? If it is a MIDlet then it doesn't contain any OS-specific dependencies and it will just work on Windows CE (of course, device properties such as screen size need to be considered).

If it is an Xlet then you may have used native OS libraries via JNI and then the question becomes more difficult.

-- Terrence

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

Hi Terrence,

Its a Midlet application making the use of mobile Ajax. My main worry is about the possible presence of some CE specific libraries and the possibility of a test run in WTK.

Thanks.

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

Can you be more specific ... what parts are you struggling with?

-- Terrence

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

Hi Terrence,
I have my application written in J2ME, and it runs in the symbian OS. Now i want to extend it to Windows CE. I have a doubt whether all the libraries I used will work in the same way as before. Or there must be some CE specific libraries too. How to inculcate them into my application??. Also, can I test run the windows ce code in WTK??