• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can we create package in J2me?

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic