B4J Question Windows BLE Library Help

walterf25

Expert
Licensed User
Longtime User
Hi all, i have the need to create a small program to connect to a BLE device using Windows, I came across this library https://github.com/tongo/ble-java here and am currently trying to create a small wrapper to test and see if it works, so far the library compiles, i am using eclipse to wrap the library, when I try running it in B4J i get the following Error:

I know this error is due to the fact that it can't find the unix library, in the example project they provide in the link above I see the libraries needed in the /libs folder are unix.jar, dbus-java-2.7.jar and libmatthew-java-0.8.jar, normally when I have wrapped libraries the library extensions are .so, this the first time I see a in a project the libraries being used are in .jar extension.

Anyhow, I have placed all those 3 files inside the /lib folder in my eclipse project, and I have even tried using the System.LoadLibrary() method but even so i still get some other errors like, it can't find the library and another error saying that the library is not a 32bit library.

Any ideas on how I can resolve this issue, Where should I copy this library files to so that the wrapper can load them during run time?

Walter
 

walterf25

Expert
Licensed User
Longtime User
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Yeah I saw that, going back to the github project it seems this will only work in Linux.

Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
But looking your log, I think you need to have this Library
You may be right, either way even if i am able to find this library, it won't work on a Windows machine which is the whole purpose of me wrapping this library.

Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
I already looked at this project, but it seems this only works for those specific usb-adapters/dongles, This is a project I need to do at work and it will be used by many Engineers, so the option of having to buy and insert an additional usb-BLE adapter is not very optimal.

Thanks for the suggestion though, I am a bit bothererd at the fact that there's nothing already ported that can work with windows.

Walter
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…