Bluetooth server

  • Hi,

    actually I'm trying to use Microlog bluetooth server. It seems that various articles are out-dated, most of them use a jar will all dependencies includes.

    I placed the necessary jars (bluecove-2.1.1-SNAPSHOT.jar / bluecove-gpl-2.1.1-SNAPSHOT.jar / microlog-server-bluetooth-3.0.0-SNAPSHOT.jar) in the same directory and tried to start the server with:
    java -cp .  net.sf.microlog.server.btspp.gui.MicrologBluetoothServerUI

    But the start aborts with:
    java.lang.NoClassDefFoundError: net/sf/microlog/server/btspp/gui/MicrologBluetoothServerUI
    Caused by: java.lang.ClassNotFoundException: net.sf.microlog.server.btspp.gui.MicrologBluetoothServerUI
            at$ Source)
            at Method)
            at Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: net.sf.microlog.server.btspp.gui.MicrologBluetoothServerUI.  Program will exit.

    Any hints?


  • Johan Karlsson
    Johan Karlsson


    you need to add the jars to classpath as well. The java application is not smart enough to look for jars in the current directory.

    One good article on the subject is

    If you do not want to read the full article here is what the command line should look like:
    java -cp bluecove-2.1.1-SNAPSHOT.jar:bluecove-gpl-2.1.1-SNAPSHOT.jar:microlog-servers-2.0.0-SNAPSHOT-jar-with-dependencies.jar net.sf.microlog.server.btspp.gui.MicrologBluetoothServerUI


  • Jarle Hansen
    Jarle Hansen

    I have updated my blog with the changes made for the new version of microlog,

    This should solve your problem. This has been available a while, but not documented. That is my mistake I am afraid, sorry!
    Please let me know if you get it up and running.