×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    Exclamation Error in buliding a j2me project

    Hai to All;

    I am working in windows platform. Here i am giving some portion of code from my application.
    This is J2me project.

    import de.avetana.javax.obex.ClientSession;
    import de.avetana.javax.obex.HeaderSet;
    import de.avetana.javax.obex.Operation;
    import de.avetana.obexsolo.OBEXConnector;
    import java.io.OutputStream;
    import java.util.Vector;
    import javax.bluetooth.BluetoothStateException;
    import javax.bluetooth.DataElement;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.DiscoveryAgent;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.LocalDevice;
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.ServiceRecord;
    import javax.bluetooth.UUID;

    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.List;

    During Building the project it shows some error , which is

    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\Ainawi.java:11: package de.avetana.javax.obex does not exist
    import de.avetana.javax.obex.ResponseCodes;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:18: package org.kxml2.io does not exist
    import org.kxml2.io.KXmlParser;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:19: package org.xmlpull.v1 does not exist
    import org.xmlpull.v1.XmlPullParser;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:11: package de.avetana.javax.obex does not exist
    import de.avetana.javax.obex.ClientSession;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:12: package de.avetana.javax.obex does not exist
    import de.avetana.javax.obex.HeaderSet;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:13: package de.avetana.javax.obex does not exist
    import de.avetana.javax.obex.Operation;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:14: package de.avetana.obexsolo does not exist
    import de.avetana.obexsolo.OBEXConnector;
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:131: cannot find symbol
    symbol : class KXmlParser
    location: class ServerConnection
    KXmlParser parser = new KXmlParser();
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:131: cannot find symbol
    symbol : class KXmlParser
    location: class ServerConnection
    KXmlParser parser = new KXmlParser();
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:137: cannot find symbol
    symbol : variable KXmlParser
    location: class ServerConnection
    parser.require(KXmlParser.START_TAG, null, "response");
    ^
    C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:139: cannot find symbol
    symbol : variable KXmlParser
    location: class ServerConnection
    parser.require(KXmlParser.START_TAG, null, "type");
    ^


    Can anyone help me, ?
    I want to know about "de.avetana.javax.obex","org.kxml2.io.KXmlParser" and "de.avetana.obexsolo.OBEXConnector" packages. Which are not in Jdk 1.6(i am using this).

    I thing i have to add aventanaBluetooth.jar and KXmlParser .jar files, could u explain, how to do this?

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Error in buliding a j2me project

    Welcome to the Dibo buddy, how about looking at this link which talks about getting the Avetana blutooth from here

    Hope that helps.

    Cheers,
    Mayank

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    2

    Re: Error in buliding a j2me project

    I have aventana jar file i would like to know how to add this in my project environment.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Error in buliding a j2me project

    Quote Originally Posted by siyamudheen View Post
    I have aventana jar file i would like to know how to add this in my project environment.
    This link talks about adding external JAR to eclipse and should be helpful for you as well.

    Cheers,
    Mayank

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. J2ME project problem - Please give some advice
    By schrodinger in forum Mobile Java Networking & Messaging & Security
    Replies: 9
    Last Post: 2009-01-17, 14:06
  3. j2me project can not be run on Series 60 MIDP SDK 2.1 emulator
    By slchim in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-01-12, 16:17
  4. Running J2ME Project PhotoAlbum in 7650
    By raymondyau in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-08, 02:34
  5. Creating a project with Nokia Developer's Suite for J2ME
    By gertsp in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2002-09-25, 03:08

Posting Permissions

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