Results 1 to 2 of 2
Thread: Java and Fedora core linux
- 02-09-2010, 06:43 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 1
- Rep Power
- 0
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?
- 02-10-2010, 12:51 AM #2
wow, new to java and diving right into blue tooth on linux eh. thats like never actually owning a car, never driving a car, or never or ever having seen a car, and then expecting to win the formula one championship race as the very first thing you do.
The error here, is your application "RemoteDeviceDiscovery" (the .class file) in the current working folder then ? the error is clearly, it cannot find this class.java.lang.NoClassDefFoundError:
RemoteDeviceDiscovery
Caused by: java.lang.ClassNotFoundException: RemoteDeviceDiscovery
Similar Threads
-
Fedora Itext Unicode Problem
By gautamn in forum Java 2DReplies: 0Last Post: 04-13-2009, 08:12 AM -
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM -
Eclipse load issue with Fedora Core 9
By digilogik in forum EclipseReplies: 2Last Post: 11-01-2008, 05:22 AM -
Whats next after core java
By nn12 in forum Advanced JavaReplies: 4Last Post: 09-23-2008, 01:07 PM -
To run Netbeans on Linux Fedora 8
By rorootot in forum NetBeansReplies: 11Last Post: 07-22-2008, 04:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks