Java and Fedora core linux
Hi guys i am new to java! I downloaded a new library for bluetooth programming in java called BlueCove. I want to run it's sample codes in Fedora 11 but every time i got the following error when after compilation i want to run it:
[reza@localhost blue]$ java -cp
./bluecove-2.1.0.jar:./bluecove-bluecove-gpl-2.1.0.jar RemoteDeviceDiscovery
Exception in thread "main" java.lang.NoClassDefFoundError:
RemoteDeviceDiscovery
Caused by: java.lang.ClassNotFoundException: RemoteDeviceDiscovery
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 23)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 68)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:336)
Could not find the main class: RemoteDeviceDiscovery. Program will exit.
In the main website they given the following command line for compilation:
java -cp bluecove-2.1.0.jar:bluecove-gpl-2.1.0.jar:yourApp.jar org.your.app.Main
my app is not a jar file and it is a simple class file. But it did'nt worked for me. The told in the main website that for running you must have the following things:
BlueCove library of the same mojor version
Package bluez-libs 3.7 or later should be installed on your system
We linked JNI library with libbluetooth.so (Not libbluetooth.so.3 or libbluetooth.so.2) to be able to use same build with Bluez Version 3 and Version 4
You need package/rpm that creates a link libbluetooth.so to already installed libbluetooth.so.3 or libbluetooth.so.2
libbluetooth-dev on Ubuntu
bluez-libs-devel on Fedora
bluez-devel on openSUSE
To change Discoverable mode of the device you should be root
On 64-bit Linux platform 64-bit java should be used
I've got the same major versions, i have got the bluez-libs, i have got the bluez-libs-devel
the only thing that i can't understand is this: "You need package/rpm that creates a link libbluetooth.so to already installed". Can the problem be for this line?
What is this means? and how can i do this?