This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes MIDlets and classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "MIDlets and classes" Watch "MIDlets and classes" New topic
Author

MIDlets and classes

Max Simpson
Ranch Hand

Joined: Sep 23, 2004
Posts: 30
Hi,
Is a MIDlet a single class file or multiple class files? I am a bit confused because when using an IDE to create a MIDlet, everytime I create a new class it is just added to the bottom of my existing class.
I tried working with a MIDlet suite, but the seperate class files do not "see" each other and the program will not work.
Thanks!
Punit Raizada
Ranch Hand

Joined: Mar 20, 2004
Posts: 156
hmmmm....

Which IDE are u using ???


SCJP 1.4
Everything that can go wrong will go wrong -Murphy
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
A MIDlet is one class. A MIDlet application (packaged in a JAR file) can contain the MIDlet class and any number of other supporting classes.

A Java file can define one public class and any number of non-public classes. A MIDlet application can have any number of Java files.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Max Simpson
Ranch Hand

Joined: Sep 23, 2004
Posts: 30
Thanks. I was confused and thought a Midlet was like a package and contained multiple class files. I guess a Midlet Suite is what I should be using for multiple class files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MIDlets and classes
 
Similar Threads
deloyping MIDLET on any server
Uncaugh Exception NoclassDefFoundError
can different midlet(same jar) share same code/resource?
Creating pdb files ...
Help on creating jar and jad files