Develop java bluetooth application under ubuntu linux

1- Install libbluetooth-dev

sudo apt-get -s install libbluetooth-dev

2- Download the latest Bluecove snapshots from http://snapshot.bluecove.org/distribution/download/

bluecove-gpl-2.1.1-SNAPSHOT.jar

bluecove-2.1.1-SNAPSHOT.jar

3- Add the above jars to your project classpath and test it

Troubleshooting

Problem: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available

load [bluecove] /usr/lib/libbluecove.so: libbluetooth.so: cannot open shared object file: No such file or directory

Solution: create a libbluetooth.so link

sudo ln -s /usr/lib/libbluetooth.so.3 /usr/lib/libbluetooth.so

Advertisements

Author: My Experience 101

This blog for me to record my experience and knowledge, it will include technical information from the software development world as well as academic knowledge.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.