Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Blutooth in J2me

 
Siyam pa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).



 
Tim Holloway
Saloon Keeper
Posts: 18362
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably, they're 3d-party packages, unless you're working for or inherited code from aventana. Try http://www.avetane.de and see if they have a website there.
 
Siyam pa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Presumably, they're 3d-party packages, unless you're working for or inherited code from aventana. Try http://www.avetane.de and see if they have a website there.


I had gone through this site and have aventanaBluetooth.jar file. Now, i would like to know how to add these packages to our jdk standard class Library.

I know that these packages are from 3d party(aventana).

Could you help me. for solving this.please expline how to add these packages to jdk.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic