Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2008

    Nokia 6131 NFC SDK + Netbeans 6.0 + J2ME Polish

    I can not build my Nokia 6131 NFC/J2ME Polish program using Netbenas 6.0.
    The precompilation of the J2ME Polish work ok, but I have error with the nfc library afterwards. Aparently the J2ME Polish ant does not found the nfc.zip.

    import javax.microedition.contactless.ContactlessException;
    package javax.microedition.contactless does not exist

    import com.nokia.nfc.p2p.NFCIPConnection;
    package com.nokia.nfc.p2p does not exist

    I tried including the nfc.zip file in the C:\Program Files\J2ME-Polish\import folder, add nfc in the JavaPackage in the C:\Program Files\J2ME-Polish\device.xml, add nfc.zip in the classpath in the build.xml but nothing.
    The nfc.zip is included in the project library as the enough-j2mepolish-client.jar so in the IDE there is no error reported, just at the building process.

    Do you know what else I can try?


  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007

    Re: Nokia 6131 NFC SDK + Netbeans 6.0 + J2ME Polish

    Hello fabianignacio,

    do you encounter this without using J2ME Polish? Does the build succeed without it?

    Related: Some similar problem:


    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Jan 2008

    Re: Nokia 6131 NFC SDK + Netbeans 6.0 + J2ME Polish


    What you need to do is to to add this section to the apis.xml in the root folder of J2ME-Polish.

    	       <name>NFC API</name>
    	       <description>Enable read/write from RFID-tags
    	       <name>NFC Client Integration API</name>
    	       <description>NFC Client Integration
    This is needed so J2ME-Polish nows what api:s you are using, and as you did they also need to be in the imoport diretory of J2ME-Polish.

    I've had the exact same problem both with eclipse and intelliJ and this fixed the build process for me when building with an ant-script.

    Best Regards Johan

  4. #4
    Registered User
    Join Date
    Sep 2008

    Re: Nokia 6131 NFC SDK + Netbeans 6.0 + J2ME Polish


    I do this, but still have the same pb, please Help.


  5. #5
    Registered User
    Join Date
    Jan 2009

    Re: Nokia 6131 NFC SDK + Netbeans 6.0 + J2ME Polish

    After include nfc.zip in import folder, you must add attribute binaryLibraries with value nfc.zip to <build> element of build.xml.

    <build binaryLibraries="nfc.zip"

Similar Threads

  1. Call media player with J2ME (nokia 6131 NFC)
    By JesusFD in forum Mobile Java General
    Replies: 0
    Last Post: 2007-10-04, 09:22
  2. FAIL: Nokia 6131 NFC SDK from command line
    By dlopez in forum Near Field Communication
    Replies: 1
    Last Post: 2007-05-23, 13:19
  3. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 13:58
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

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