Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

new to J2ME, a few quick questions...

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dan Maples
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks William! you have been most helpful!!!
 
Ranch Hand
Posts: 1324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
?
 
Dan Maples
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more quick question I came up with:
What are the associated technologies, Java libraries, and JVM�s for each profile?

Thanks!
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!