Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2011

    Libraries for j2me

    I am using eclipseME.
    I am writing a J2ME Midlet which requires me to use some shared classes packaged within a jar file. I have added the JAR in the the build path of the Midlet. Also i have selected the jar file in "Order and export" tab under Java Build Path in project properties.
    I am facing NO compilation problems, but when i try to run it on emulator it throws No class def found error.

    Can anybody please tell me if i have missed anything??

    Also, i am not really sure how to create and package J2ME classes within a JAR File so that they can be imported into other Midlets and also deployed along with them to the device. (I might have gone wrong in here).

    Please Help

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    USA, CA

    Re: Libraries for j2me

    Have you tried adding the classes from the JAR directly in to your MIDlet JAR? (instead of adding the JAR in your MIDlet JAR)? And make sure that the files are included in the MIDlet JAR (open the JAR with a ZIP reader - it is a zip file after all..)


  3. #3
    Registered User
    Join Date
    Feb 2011

    Re: Libraries for j2me

    hi hartti,
    I am actually planning to create a library so that it can be used across different midlets (similar to kxml!)
    I figured out the problem. The problem was with the eclipse ME 1.7.9 (see http://www.mail-archive.com/eclipsem.../msg01253.html). I tried using NetBeans and now i could see the contents of the my jar (class files) in the midlet's jar.


Similar Threads

  1. Where is libraries for emulator?
    By ScrewSomeOne in forum [Archived] Qt Mobility Project
    Replies: 6
    Last Post: 2009-12-23, 04:43
  2. Replies: 3
    Last Post: 2007-09-07, 07:55
  3. x86 libraries for D211
    By pts11062 in forum Multimodecards
    Replies: 0
    Last Post: 2004-03-18, 11:20
  4. Loding External Libraries in J2ME(very urgent)
    By kiranputhran in forum Mobile Java General
    Replies: 1
    Last Post: 2003-02-26, 23:35
  5. Libraries and headers for ConvertToUnicode()?
    By trodat in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-08-29, 09:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts