Forums Register Login

new to J2ME, a few quick questions...

+Pie Number of slices to send: Send
Hey everybody I'm starting to try to learn J2ME, I tried to dive into it pretty quickly and got myself confused. I have a few questions that I can't find the answers for that I'm sure somebody can help with.

1)Can J2ME applications run on a pc? (without the cell phone emulator) and if so what (if anything) do you need to run it?
2)Do you need anything special to run J2ME apps on a PDA? Or is it the same as apps for a cell phone?
3)Can one app run on all PDA's or does it have to be altered for palm OS vs. Pocket PC etc.
4)How do J2ME profiles work?
5)Are the collection classes supported in J2ME?
6)Are there any XML parsers available for J2ME?
7)Does J2ME support Applets?
8)Does J2ME have any support for JSP containers?



Thanks in advance for all the help!!!

[edit: added questions 7&8]
[ July 26, 2005: Message edited by: Dan Maples ]
+Pie Number of slices to send: Send
1)Can J2ME applications run on a pc? (without the cell phone emulator) and if so what (if anything) do you need to run it?

Yes, they run on a PC. You need to use the emulator but you don't have to use one that looks like a cell phone. With the Sun SDK you can create your own emulator using any image you want.

2)Do you need anything special to run J2ME apps on a PDA? Or is it the same as apps for a cell phone?

You need a Java Virtual Machine. Many (most?) PDAs do not include a JVM from the factory. You may have to install one. Yes, the same app that runs on your cell phone should run on your PDA if it supports the same profile.

3)Can one app run on all PDA's or does it have to be altered for palm OS vs. Pocket PC etc.

"Write once, run everywhere" is the Java motto. The reality is that you will probably want to customize each version to take advantage of different display sizes or keyboard layouts. You will also find numerous bugs in JVMs that force you to create device specific work-arounds.

4)How do J2ME profiles work?

Devices implement a profile like MIDP 1.0 or MIDP 2.0. Each profile consists of a different set of JVM capabilities and APIs. You need to write your application using the APIs supported by your target JVM's profile.

5)Are the collection classes supported in J2ME?

Basic collection classes from java.util are available such as Stack, Vector, and Hashtable. You also get Enumeration but not Iterator.

6)Are there any XML parsers available for J2ME?

Yes, kXML is an open source project (www.kxml.org) but I highly recommend you avoid trying to do things like XML parsing in a MIDlet.

7)Does J2ME support Applets?

No.

8)Does J2ME have any support for JSP containers?

No.
+Pie Number of slices to send: Send
Thanks William! you have been most helpful!!!
+Pie Number of slices to send: Send
do the developers need the technical capabilities in low level languages such as assembly, C, C++ and OS concepts in addion to J2ME to be able to write mobile phone softwares for phones such as nokia, motorola, xcute, benq etc....
?
+Pie Number of slices to send: Send
One more quick question I came up with:
What are the associated technologies, Java libraries, and JVM�s for each profile?

Thanks!
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1143 times.
Similar Threads
Help needed with some interview questions
J2ME deployment question
Mobile phones, J2ME and Java Enabled Phone Options
pocket pc emulator on WebShpere??
j2me installation on my cell
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:40:50.