ubuntu - Problems compiling and running Java app with Bluecove (NoClassDefFoundError) -


I have this app that uses Bluetooth, so I need the bluecove and bluequo-gpl package, when i It will run in Netbeans, I have no problem, and work perfectly well. But I still can not compile and run from the command line (Ubuntu 11.04).

I am using this line to compile:

$ javac -Xlint: unchecked-classpath bluecove-2.1.0.jar: bluecove-gpl -2.1.0. Jar Client.java

And it does not return errors and this one. Class file

Then I try to run such a class file:

java-squarepath bluecove-2.1.0.jar: bluecove-gpl- 2.1.0.jar Client

but it returns a Nosfelffind error . The main square could not be found: SPPClient .

Why is this happening?

You may have your current directory (or the directory / Em> class remains in the path).

Try something

  java-classpath .: Bluecove-2.1.0.jar: bluecove -gpl-2.1.0.jar client   

or

  Java-ClassPath bin: Bluukov-2.1.0ajar: BlueKove-GPL-2.1.1 0.jar Client    

Comments