File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes can different midlet(same jar) share same code/resource? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "can different midlet(same jar) share same code/resource?" Watch "can different midlet(same jar) share same code/resource?" New topic
Author

can different midlet(same jar) share same code/resource?

HaoZhe Xu
Ranch Hand

Joined: Nov 03, 2003
Posts: 222
such like:
/midlet
/midlet/res/*.png
/midlet/common/Helper.class
/midlet/midlet1/Midlet1.class
/midlet/midlet2/Midlet2.class

can Midlet1 and Midlet2 use Helper and access *.png in res (I think they can)?


[url]Olnex.net[/url]
[SCJP 1.2, SCJD, SCWCD]
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

I don't see any reason why they wouldn't be able to share those resources.


Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Yes, as long as they�re packaged in the same JAR file.


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can different midlet(same jar) share same code/resource?
 
Similar Threads
midlet call midlet in a same midlet suit
NullPointerException - Can't figure this out
difficulty exiting a MIDlet on the WTK20 simulator
About switch midlet??
Png-files doesn't appear in Alert()