Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2010, 07:43 AM
Member
 
Join Date: Feb 2010
Posts: 1
Rep Power: 0
rezasabery is on a distinguished road
Default 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?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 02-10-2010, 01:51 AM
travishein's Avatar
Senior Member
 
Join Date: Sep 2009
Location: Canada
Posts: 355
Rep Power: 1
travishein is on a distinguished road
Default
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.

Quote:
java.lang.NoClassDefFoundError:
RemoteDeviceDiscovery
Caused by: java.lang.ClassNotFoundException: RemoteDeviceDiscovery
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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Itext Unicode Problem gautamn Java 2D 0 04-13-2009 09:12 AM
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux Eranga Advanced Java 6 04-08-2009 05:05 AM
Eclipse load issue with Fedora Core 9 digilogik Eclipse 2 11-01-2008 06:22 AM
Whats next after core java nn12 Advanced Java 4 09-23-2008 02:07 PM
To run Netbeans on Linux Fedora 8 rorootot NetBeans 11 07-22-2008 05:23 AM


All times are GMT +2. The time now is 02:42 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org