OSX loading of libraries failing

3 views
Skip to first unread message

glennpow

unread,
May 6, 2008, 2:24:25 AM5/6/08
to bluecove-users
Hello,
I'm trying to set up my bluecove environment on my Mac. And I've
tried several different strategies. I first put the
bluecove-2.0.2.jar into a general Java extensions location, and added
it to the classpath. Which didn't work. I get this error:


08:19:13.024 Java 1.4+ detected
com.intel.bluetooth.UtilsJavaSE.getLocation(UtilsJavaSE.java:79)
08:19:13.051 error Library bluecove not loaded
java.lang.UnsatisfiedLinkError: no bluecove in java.library.path
com.intel.bluetooth.NativeLibLoader.tryload(NativeLibLoader.java:
194)
... ... ...
Native Library bluecove not available
08:19:13.053 java.library.path .:/Users/glennpowell/Library/Java/
Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/
usr/lib/java

com.intel.bluetooth.NativeLibLoader.isAvailable(NativeLibLoader.java:
183)


Then I tried putting it directly in the project that was referencing
it. Again no luck, and same error.
Then I extracted the libbluecove.jnilib from the jar and added that
file directly into the project, and set that as the variable
java.library.path. This finally gave me different results, but now I
get this error:


20:52:58.762 Java 1.4+ detected
com.intel.bluetooth.UtilsJavaSE.getLocation(UtilsJavaSE.java:79)
20:52:58.903 error Library bluecove not loaded
java.lang.UnsatisfiedLinkError: /Users/glennpowell/Documents/workspace/
Wiired/lib/libbluecove.jnilib:
com.intel.bluetooth.NativeLibLoader.tryload(NativeLibLoader.java:
194)
... ... ...
Native Library bluecove not available
08:21:59.953 java.library.path /Users/glennpowell/Documents/workspace/
Wiired/lib

com.intel.bluetooth.NativeLibLoader.isAvailable(NativeLibLoader.java:
183)


It seems to obviously be seeing the JNILIB file, so why does it say
UnsatisfiedLinkError?
Thanks in advance.

Vlad Skarzhevskyy

unread,
May 6, 2008, 8:26:21 AM5/6/08
to bluecov...@googlegroups.com
Please run your app with -Dbluecove.debug= true

You run this app (Webstart)
http://www.bluecove.org/bluecove-examples/bluecove-tester/ and select
debug on before you execute any function.

Also what kind of Mac do you have. Does it has version number?

glennpow

unread,
May 7, 2008, 2:59:55 AM5/7/08
to bluecove-users
Hello Vlad,
I have been running my app with debug on, and that's how I got the
error messages above.
I run on a MacBook Pro 2GHz. (I believe the version is 3.1)

I tried running the bluecove-tester mentioned above, and it appears to
be working correctly. It said there were zero errors.
I'm assuming that my actual stack is working fine, since I can use my
Mac bluetooth applications just fine. I think I'm just setting up my
development environment incorrectly.
Should the bluecove-2.0.2.jar be placed in the CLASSPATH or in the
java.library.path?
Should it be un-jarred?
Do I actually need the 2.0.3 jar since I saw there was a fix for Mac
in that release?
Perhaps my problem is that I'm trying to use Eclipse for all this.
Any suggestions are appreciated.
thanks.

-Glenn

On May 6, 2:26 pm, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com> wrote:
> Please run your app with -Dbluecove.debug= true
>
> You run this app (Webstart)http://www.bluecove.org/bluecove-examples/bluecove-tester/ and select

Vlad Skarzhevskyy

unread,
May 7, 2008, 8:48:26 AM5/7/08
to bluecov...@googlegroups.com
I can't give you more advice other then already written.
- No you don't need to unjar jar
- BlueCove works just fine in Eclipse
- If you tested bluecove-tester 2.0.2 and it was working then 2.0.3
will not fix your problem
- And Mac OS has a version it can be 10.5.1 or 10.4.10 but in no way 3.1

glennpow

unread,
May 10, 2008, 4:34:11 AM5/10/08
to bluecove-users
Hi Vlad,
I guess I didn't realize that you meant the Mac OS Version. ("Also
what kind of Mac do you have. Does it has version number?")
Yes, then I have Leopard 10.5.2 installed on my Macbook Pro.

I've tried just about every combination of project settings, pointing
every possible java path variable at my bluecode-2.0.2.jar file, but
nothing seems to work. It just isn't Satisfied with that Link.

Perhaps I'll try a different bluetooth library for now.
Reply all
Reply to author
Forward
0 new messages