Results 1 to 2 of 2
  1. #1
    rezasabery is offline Member
    Join Date
    Feb 2010
    Rep Power

    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:
    Caused by: java.lang.ClassNotFoundException: RemoteDeviceDiscovery
    at$ 217)
    at Method)
    at ava:205)
    at java.lang.ClassLoader.loadClass( 23)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche
    at java.lang.ClassLoader.loadClass( 68)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade
    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

    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 (Not or to be able to use same build with Bluez Version 3 and Version 4
    You need package/rpm that creates a link to already installed or
    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 to already installed". Can the problem be for this line?
    What is this means? and how can i do this?

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    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.

    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.

Similar Threads

  1. Whats next after core java
    By nn12 in forum Advanced Java
    Replies: 7
    Last Post: 10-11-2013, 08:59 AM
  2. Fedora Itext Unicode Problem
    By gautamn in forum Java 2D
    Replies: 0
    Last Post: 04-13-2009, 08:12 AM
  3. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  4. Eclipse load issue with Fedora Core 9
    By digilogik in forum Eclipse
    Replies: 2
    Last Post: 11-01-2008, 05:22 AM
  5. To run Netbeans on Linux Fedora 8
    By rorootot in forum NetBeans
    Replies: 11
    Last Post: 07-22-2008, 04:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts