• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we create package in J2me?

 
Bk Jacky
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
can we create package in j2me? if yes, then how? and where will we place that package? what will be that form of that package?
plz tell with example.

Bhupinder
SCJP 1.4
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use packages in your code, if that is what you mena by package. It works the exact same way as in J2SE.

However, it is common practice in J2ME not to put your code into packages for performance based reasons.

Mark
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
User defined packages must be defined inside each MIDlet suite's JAR, for MIDP devices. So if you have a package you will use for several MIDlet suites, the package must be archived within each suite's JAR file.

Note that MIDlets cannot access user-defined classes outside its suite JAR file.
[ January 15, 2006: Message edited by: Eduardo Marques ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic