Hi,
I'm having a problem with creating a connection
I'm using JCreator, I have the MS bluetooth stack, my hardware plugged
in and recognised, and I've included the bluecove implementation.
I can perform a device search, and discover the services provided.
I'm now trying to connect to OBEX File Transfer. I've tried the
following two methods:
FileConnection fc = (FileConnection)Connector.open(connectionURL);
and
ClientSession conn = (ClientSession) Connector.open(connectionURL);
they both throw the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
javax.microedition.io.Connector.isNetworkMonitorActive()Z
at javax.microedition.io.Connector.isNetworkMonitorActive(Native
Method)
at javax.microedition.io.Connector.<clinit>(Connector.java:171)
at BluetoothHandler.connect(BluetoothHandler.java:169)
at BluetoothHandler.<init>(BluetoothHandler.java:79)
at Transfer.doBluetooth(Transfer.java:32)
at Transfer.<init>(Transfer.java:19)
at Transfer.main(Transfer.java:24)
I am including jsr75.jar and others from the WTK that came with the
Sony Ericsson SDK. I know you need a further implementation of jsr082
(i.e. bluecove), but I don't think that's the case with jsr75 and
others?
More to the point, extensive searching points to this error meaning
that I have failed to load a dll. Lots of people point to this page:
http://mindprod.com/jgloss/runerrormessages.html#UNSATISFIEDLINKERROR
Wassup doesn't report a value for "java.library.path", which perhaps
points to the problem.
My problem is I have no idea what dll it is I'm missing? Bluecove is
supposed to extract the intelbth.dll to a temp directory and link to
it itself, which is happening, and I have also copied this dll into
system32 to make doubly sure. The only other dll I have come across
mentioned is zayit.dll, I have zayitlib.dll in my C:\SonyEricsson
\JavaME_SDK_CLDC\WTK2\bin folder which is referenced in both CLASSPATH
and Path to no avail.
I have additionally tried using System.loadLibrary and System.load to
included both of those dll's.
If anyone could please point me in the right direction I'd appreciate
it!
Eris