[BlueCove-users] Bluecove 2.1.1

1,119 views
Skip to first unread message

Hernan Danielan

unread,
May 2, 2010, 6:56:52 PM5/2/10
to bluecov...@googlegroups.com
Hello! I can compile the Bluecove and the bluecove gpl 2.1.1 library for ubuntu 9.10. However i get an error when i try to run mi program which was working with bluecove 2.1.0. Can somebody send me the compiles files so that i can try it out?

The error is: 

javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available;
resource not found libbluecove.so
load [bluecove] no bluecove in java.library.path

thanks in advance,
Hernan.

--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To post to this group, send email to bluecov...@googlegroups.com.
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bluecove-users?hl=en.

Mina Shokry

unread,
May 3, 2010, 4:06:40 AM5/3/10
to bluecov...@googlegroups.com
You can find already built snapshots here

http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/

Hernan Danielan

unread,
May 3, 2010, 6:43:47 PM5/3/10
to bluecov...@googlegroups.com
Thanks Mina! I downloaded the libraries from the site. However i have a problem. I exchange the Bluecove 2.1.0 for this ones:

bluecove-2.1.1-SNAPSHOT.jar
bluecove-bluez-2.1.1-SNAPSHOT.jar
bluecove-emu-2.1.1-SNAPSHOT.jar
bluecove-gpl-2.1.1-SNAPSHOT.jar

When i run the same application with bluecove 2.1.0 it works great, however when i exchange for the ones above i get the following exception in the following line

ClientSession conn = (ClientSession) Connector.open("btgoep://A87BXXXXXXXX:9;authenticate=false;encrypt=false;master=true");


Exception in thread "Thread-11" java.lang.NoClassDefFoundError: com/sun/midp/io/InternalConnector
        at javax.microedition.io.Connector.open(Connector.java:158)
        at javax.microedition.io.Connector.open(Connector.java:138)
        at javax.microedition.io.Connector.open(Connector.java:120)
        at Bluetooth.BluetoothDongleChannel.getClientSession(BluetoothDongleChannel.java:142)

I am using  Sun Java Wireless Toolkit 2.5.2_01 because i could not download the toolkit 3.0

Do you have an idea what can be wrong?? I am running the application on ubuntu

Thanks in advance,
Hernan

Mina Shokry

unread,
May 5, 2010, 3:59:12 AM5/5/10
to bluecov...@googlegroups.com
I don't understand what are you trying to do!

If you use bluecove, why you need the WTK? Do you try to run code on WTK emulator with bluecove to use the real bluetooth instead of WTK emulated bluetooth? if this is your case, I suggest using MicroEmulator (http://www.microemu.org) instead of WTK. It well integrates with bluecove.

then, you shouldn't need all these jars in your classpath. use main bluecove jar with only one of bluecove-gpl, bluecove-bluez, and bluecove-emu. they are 3 independenet implementations. Choose only one according to your needs.

Hernan Danielan

unread,
May 5, 2010, 10:27:31 PM5/5/10
to bluecov...@googlegroups.com
Thanks Mina. I understand my mistake, it is clear now. I used the GPL version which works. I have been experimenting some problems with l2cap connection. It was impossible to bind a connection. That is why i choose 2.1.1-SNAPSHOT.10. It is working excellent. 

I would like to ask you which library will you recommend me between bluecove-bluez-2.1.1-SNAPSHOT.jar and bluecove-gpl-2.1.1-SNAPSHOT.jar ? I am looking for the most stable of both.

Thank you very much,
Hernan

Mina Shokry

unread,
May 6, 2010, 4:08:45 AM5/6/10
to bluecov...@googlegroups.com
bluecove-gpl is stable. And I am not sure if bluecove-bluez is stable. If you don't have licensing issues, I recommend using bluecove-gpl.

Thuthu

unread,
May 7, 2010, 4:09:48 AM5/7/10
to bluecove-users
Hi guys,

I need to use bluecove on windows OS. I want to establish bluetooth
connection between a laptop and Nokia N97. I'm struggling with
installation of bluecove to windows OS.
May you please help me with step-by-step instructions on how can I
install bluecove on windows, I will then take it from there. I have
tried to use online installation guide for bluecove but I'm failing to
understand how it's done.

On May 6, 10:08 am, Mina Shokry <minasho...@gmail.com> wrote:
> bluecove-gpl is stable. And I am not sure if bluecove-bluez is stable. If
> you don't have licensing issues, I recommend using bluecove-gpl.
>
> On Thu, May 6, 2010 at 5:27 AM, Hernan Danielan <hernandanie...@gmail.com>wrote:
>
>
>
> > Thanks Mina. I understand my mistake, it is clear now. I used the GPL
> > version which works. I have been experimenting some problems with l2cap
> > connection. It was impossible to bind a connection. That is why i choose 2.1.1-SNAPSHOT.10.
> > It is working excellent.
>
> > I would like to ask you which library will you recommend me
> > between bluecove-bluez-2.1.1-SNAPSHOT.jar
> > and bluecove-gpl-2.1.1-SNAPSHOT.jar ? I am looking for the most stable of
> > both.
>
> > Thank you very much,
> > Hernan
> > *
> > *
> > On Wed, May 5, 2010 at 4:59 AM, Mina Shokry <minasho...@gmail.com> wrote:
>
> >> I don't understand what are you trying to do!
>
> >> If you use bluecove, why you need the WTK? Do you try to run code on WTK
> >> emulator with bluecove to use the real bluetooth instead of WTK emulated
> >> bluetooth? if this is your case, I suggest using MicroEmulator (
> >>http://www.microemu.org) instead of WTK. It well integrates with
> >> bluecove.
>
> >> then, you shouldn't need all these jars in your classpath. use main
> >> bluecove jar with only one of bluecove-gpl, bluecove-bluez, and
> >> bluecove-emu. they are 3 independenet implementations. Choose only one
> >> according to your needs.
>
> >> On Tue, May 4, 2010 at 1:43 AM, Hernan Danielan <hernandanie...@gmail.com
> >> > wrote:
>
> >>> Thanks Mina! I downloaded the libraries from the site. However i have a
> >>> problem. I exchange the Bluecove 2.1.0 for this ones:
>
> >>> bluecove-2.1.1-SNAPSHOT.jar
> >>> bluecove-bluez-2.1.1-SNAPSHOT.jar
> >>> bluecove-emu-2.1.1-SNAPSHOT.jar
> >>> bluecove-gpl-2.1.1-SNAPSHOT.jar
>
> >>> When i run the same application with bluecove 2.1.0 it works great,
> >>> however when i exchange for the ones above i get the following exception in
> >>> the following line
>
> >>> *ClientSession conn = (ClientSession) Connector.open(**
> >>> "btgoep://A87BXXXXXXXX:9;authenticate=false;encrypt=false;master=true");
> >>> *
>
> >>> Exception in thread "Thread-11" java.lang.NoClassDefFoundError:
> >>> com/sun/midp/io/InternalConnector
> >>>         at javax.microedition.io.Connector.open(Connector.java:158)
> >>>         at javax.microedition.io.Connector.open(Connector.java:138)
> >>>         at javax.microedition.io.Connector.open(Connector.java:120)
> >>>         at
> >>> Bluetooth.BluetoothDongleChannel.getClientSession(BluetoothDongleChannel.java:142)
>
> >>> I am using  Sun Java Wireless Toolkit 2.5.2_01 because i could not
> >>> download the toolkit 3.0
>
> >>> Do you have an idea what can be wrong?? I am running the application on
> >>> ubuntu
>
> >>> Thanks in advance,
> >>> Hernan
>
> >>> On Mon, May 3, 2010 at 5:06 AM, Mina Shokry <minasho...@gmail.com>wrote:
>
> >>>> You can find already built snapshots here
>
> >>>>http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/
>
> >>>> On Mon, May 3, 2010 at 1:56 AM, Hernan Danielan <
> >>>> hernandanie...@gmail.com> wrote:
>
> >>>>>  Hello! I can compile the Bluecove and the bluecove gpl 2.1.1 library
> >>>>> for ubuntu 9.10. However i get an error when i try to run mi program which
> >>>>> was working with bluecove 2.1.0. Can somebody send me the compiles files so
> >>>>> that i can try it out?
>
> >>>>> The error is:
>
> >>>>> javax.bluetooth.BluetoothStateException: BlueCove library bluecove not
> >>>>> available;
> >>>>> resource not found libbluecove.so
> >>>>> load [bluecove] no bluecove in java.library.path
>
> >>>>> thanks in advance,
> >>>>> Hernan.
>
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "bluecove-users" group.
> >>>>> To post to this group, send email to bluecov...@googlegroups.com.
> >>>>> To unsubscribe from this group, send email to
> >>>>> bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> >>>>> .
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/group/bluecove-users?hl=en.
>
> >>>>  --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "bluecove-users" group.
> >>>> To post to this group, send email to bluecov...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to
> >>>> bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/bluecove-users?hl=en.
>
> >>>  --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "bluecove-users" group.
> >>> To post to this group, send email to bluecov...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/bluecove-users?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "bluecove-users" group.
> >> To post to this group, send email to bluecov...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/bluecove-users?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "bluecove-users" group.
> > To post to this group, send email to bluecov...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bluecove-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "bluecove-users" group.
> To post to this group, send email to bluecov...@googlegroups.com.
> To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/bluecove-users?hl=en.

Youri Westerman

unread,
May 7, 2010, 6:38:39 AM5/7/10
to bluecov...@googlegroups.com
Hi,

You can't really install bluecove. It's a library to be used with
java. What IDE are you using? You should look up how to add a library
to your project in the manual or documentation of your IDE.

Youri

Hernan Danielan

unread,
May 7, 2010, 8:14:33 AM5/7/10
to bluecov...@googlegroups.com
Thanks very much Mina. You were really helpful.

Thuthu

unread,
May 7, 2010, 8:14:30 AM5/7/10
to bluecove-users
Thanks Youri for your response,

I'm using NetBeans 6.8. I have actually added the bluecove library but
when I try to run following code it produces an error:

import java.io.*;
import javax.bluetooth.*;
import javax.microedition.io.*;

/**
*
* @author MNkosi
*/
public class EchoServer {
public final UUID uuid = new UUID( //
the uid of the service, it has to be unique,
"27012f0c68af4fbf8dbe6bbaf7aa432a", false); //it can be generated
randomly
public final String name = "Echo Server"; //
the name of the service
public final String url = "btspp://localhost:" + uuid //
the service url
+ ";name=" + name
+
";authenticate=false;encrypt=false;";
LocalDevice local = null;
StreamConnectionNotifier server = null;
StreamConnection conn = null;

public EchoServer() {
try {
System.out.println("Setting device to be
discoverable...");
local = LocalDevice.getLocalDevice();
local.setDiscoverable(DiscoveryAgent.GIAC);
System.out.println("Start advertising service...");
server = (StreamConnectionNotifier)Connector.open(url);
System.out.println("Waiting for incoming connection...");
conn = server.acceptAndOpen();
System.out.println("Client Connected...");
DataInputStream din = new
DataInputStream(conn.openInputStream());
while(true){
String cmd = "";
char c;
while (((c = din.readChar()) > 0) && (c!='\n') ){
cmd = cmd + c;
}
System.out.println("Received " + cmd);
}

} catch (Exception e) {System.out.println("Exception Occured:
" + e.toString());}
}

public static void main (String args[]){
EchoServer echoserver = new EchoServer();
}

}
-----------------------------------------
and the error is:
...
Created dir: C:\JavaApps\BlueCoveEx\build\preverifysrc
Copying 161 files to C:\JavaApps\BlueCoveEx\build\preverifysrc
Created dir: C:\JavaApps\BlueCoveEx\build\preverified
Preverifying 161 file(s) into C:\JavaApps\BlueCoveEx\build\preverified
directory.
Error preverifying class com.intel.bluetooth.btgoep.Connection
java/lang/NoClassDefFoundError: com/ibm/oti/connection/
CreateConnection
C:\JavaApps\BlueCoveEx\nbproject\build-impl.xml:461: Preverification
failed with error code 1.
BUILD FAILED (total time: 0 seconds)
-------------------------------

So would you please share some light on how I can fix this.

caleb momanyi

unread,
Sep 11, 2017, 12:52:10 AM9/11/17
to bluecove-users
Hi those links are no longer active
Reply all
Reply to author
Forward
0 new messages