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.
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:
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,
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.
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...
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.
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.
Can you be more specific ... what parts are you struggling with?
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??
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.