Exception in thread "main" java.lang.UnsatisfiedLinkError

102 views
Skip to first unread message

Daniele

unread,
Nov 23, 2010, 11:41:25 AM11/23/10
to bluecove-users
Hello everybody,
i'm trying to implement a simple devices discovery on netbeans 6.8
using bluecove library, if i put bluecove-2.1.0.jar as a library in
the project, everthing is ok, but if i put in the project the source
code of bluecove2.1.0 and the dll contained in the jar file as a
library and run the main class, the following error shows up:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
Bluecove.src.main.java.com.intel.bluetooth.BluetoothStackMicrosoft.getLibraryVersion()I
at
Bluecove.src.main.java.com.intel.bluetooth.BluetoothStackMicrosoft.getLibraryVersion(Native
Method)
at
Bluecove.src.main.java.com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:
450)
at
Bluecove.src.main.java.com.intel.bluetooth.BlueCoveImpl.access
$500(BlueCoveImpl.java:65)
at Bluecove.src.main.java.com.intel.bluetooth.BlueCoveImpl
$1.run(BlueCoveImpl.java:1020)
at java.security.AccessController.doPrivileged(Native Method)
at
Bluecove.src.main.java.com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:
1018)
at
Bluecove.src.main.java.com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:
1011)
at
Bluecove.src.main.java.javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:
75)
at
Bluecove.src.main.java.javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:
95)
at SimpleDiscovery.main(SimpleDiscovery.java:54)
Java Result: 1
BUILD SUCCESFULLY (tempo totale: 0 secondi)

i know that this is alinking error so i try to put the dll,
jnilib...contained in the jar file directly in C:\Program Files\Java
\jdk1.6.0_12\jre\bin but it still doesn't work.Can somebody help me
plz?
Regards,
Daniele.

Mina Shokry

unread,
Nov 24, 2010, 11:18:04 AM11/24/10
to bluecov...@googlegroups.com
Hello,

It looks like your source directories aren't set up correctly so that classes appear in wrong packages.

Make your project contain the source folder Bluecove/src/main/java itself not its parent. In other words, let the directory "java" be a source root so that "com" become the first package directory.


--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To post to this group, send email to bluecov...@googlegroups.com.
To unsubscribe from this group, send email to bluecove-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bluecove-users?hl=en.


Daniele

unread,
Nov 24, 2010, 3:43:09 PM11/24/10
to bluecove-users
hi mina,
your suggestion it's right, too many folder and the IDE loss the path
when he find bluecove.src. with the original folder src of netbeans
6.8, thank you very much for help me, now i can go on with my
project ;)
> > bluecove-user...@googlegroups.com<bluecove-users%2Bunsubscribe@go oglegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages