×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    2

    semacode Reader SDK prob

    Hi there,


    I am trying to compile the semacode Reader source files with the Reader SDK to get in touch with the example code provided. Unfortunately the compiled code doesn't seem to work, even if I do not change anything at all. The error message is as follows:

    ----
    Unable to create MIDlet defaultPackage.SemacodeMIDlet
    java.lang.NullPointerException
    ----

    The emulator crashes saying:

    ---
    Cannot start:
    SemacodeMIDlet,
    defaultPackage.SemacodeMIDlet
    Exception:
    java.lang.NullPointerException
    ---

    When deploying it to a N70, the MIDlet crashes instantly even before any error message could be displayed.


    Meanwhile I found out that the jar package created by Carbide.j doesn't contain the necessary classes from the SDK library but just the surface-classes provided in source code with the reader.

    As far as I can see, I did everything to include the library, which is provided as a jar itself:
    - put it in the Java build path
    - marked it to be exported to the final deployment file


    I am using:
    * Eclipse 3.1.2
    * JDK 1.4.2_12
    * J2ME WTK 2.2 update 1
    * Nokia S60 JME SDK 2nd Ed. FP 3
    * Carbide.j 1.5
    * semacode Reader SDK for Java Phones 1.6
    * sources from semacode Reader Standalone for Java Phones 1.6.


    Any help appreciated.


    Marcel

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: semacode Reader SDK prob

    hi Marcel,

    have you tried to use Sun WTK tools solely to deploy that project?

    regards,
    Peter

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    53

    Re: semacode Reader SDK prob

    Hi Marcel,

    I tried to build in Sun's Java WTK 2.5 Beta environment and had same problems.

    After i played around with libraries, found out some differences between two jar files semacode_reader_lib.jar and semacode_reader_me.jar.

    in semacode_reader_lib.jar
    - manifest.mf file is an old version (v 1.5)
    - .class files have the same sizes in both libraries but at runtime they cause a NullPointerException

    solution:
    use semacode_reader_me.jar as sdk library but before you use it delete the class files under org/semacode/reader directory.

    I don't have any device and run it just in emulator environment. I am interested for your feedback, does it work on real device.

    regards,
    yalcin

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    2

    Re: semacode Reader SDK prob

    Hi and thank you very much for your responses.

    The point was indeed I guess a beginner's mistake: As said before I had to recognize that Carbide.j's "Create Package..."-wizard isn't at all able to integrate an existing library into a new project. It just ignores the settings made in the "Java Build Path"-options and so the precompiled library classes were ...

    Peter, your idea got me on the right way, when using the WTK for a try I did not encounter that problem.

    I then tried it with the EclipseME-plugin to be able to go on the Eclipse way, which worked perfectly well after changing some basic settings and adding missing information in the pre-generated JAD-file.

    Finally, the NullPointerException (and that's what I call the beginner's mistake ) was caused by a missing file called strings.properties.

    @yalcin: Thank you for pointing out the problems between the semacode_reader_lib.jar and semacode_reader_me.jar, which are - apart from the docs and the version - quite the same. I was using the SDK pack (semacode_reader_lib.jar) together with the org.semacode.reader files from the Reader pack (semacode_reader_me.jar), but that was not the reason for my exception. In this combination it now works fine on the emulator as well as on my N70 device. Yet, I will try using the ..._me.jar in the next steps.

    Regards,
    Marcel

  5. #5
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: semacode Reader SDK prob

    Quote Originally Posted by MarcelHeckermann
    Peter, your idea got me on the right way
    you are welcome!

    regards,
    Peter

Similar Threads

  1. SERIES 60 SDK FOR SYMBIAN OS and UIQ 2.0 SDK for Symbian OS v7
    By ekoprasetio in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2010-08-13, 10:05
  2. MIDP applicatyion accessing a servlet not working in series 60 emulator
    By ferozekadamapuzha in forum Mobile Java General
    Replies: 11
    Last Post: 2008-05-07, 18:04
  3. Installing the SDK with Borland C++Builder
    By hrajalin in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2003-10-31, 02:46
  4. setting of Series 60 MIDP SDK for Symbian OS version 1.2 for networking
    By servigo in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2003-07-31, 07:47
  5. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11: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
  •