The naming of the library in Unix-like systems should be libusbJava.so or in you case libusbJava.jnilib. To load the library the Java command is System.loadLibrary("usbJava") (see class ch.ntb.usb.LibusbJava, line 363). The 'lib' prefix and the correct extensions will be appended.
That's why it works when you call the library libjavalibusb.jnilib and load it with System.loadLibrary("javalibusb"). I'd recommend using the standard naming as stated here: http://libusbjava.sourceforge.net/wp/?page_id=8#libusbJava_instLinux
I don't know why the device does not show up. As this is a libusb specific question you will probably get better support for that problem on their mailing list. libusbJava only sees the devices which are seen by libusb.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, for interrupting this thread. I just open a previous thread about compiling into Mac. I had a problem. Could you be so kind to describe how did you compile into Mac? Did ant mac worked for you. I want to know if my problems is because Mac 1.5.
Sorry, again.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for a bit of software that gets me closer to my goal.
My story so far..
Created the library on Netbeans, placed in ~/Library/Java/Extensions, library named libjavalibusb.jnilib
Compiled the Java and got the dreaded
java.lang.UnsatisfiedLinkError: message.
So going against all advice I had seen so far, called the library thus..
System.loadLibrary("javalibusb");
which worked (as opposed to System.loadLibrary("libjavalibusb");
which didn't.
Now ran USBView, but it doesnt see the device I want to access, which is my weather station (TE923 clone) 0x1130:0x6801.
This device is visible in the 'About this mac' applet, but it doesnt have a name.
It does work as I used XP within VirtualBox to download data from the weather station, but who wants to keep doing this, not me!!!
Apparently, research on this device shows it is a HID device (like a joystick etc)
So anyone help me out on this problem?
The naming of the library in Unix-like systems should be libusbJava.so or in you case libusbJava.jnilib. To load the library the Java command is System.loadLibrary("usbJava") (see class ch.ntb.usb.LibusbJava, line 363). The 'lib' prefix and the correct extensions will be appended.
That's why it works when you call the library libjavalibusb.jnilib and load it with System.loadLibrary("javalibusb"). I'd recommend using the standard naming as stated here:
http://libusbjava.sourceforge.net/wp/?page_id=8#libusbJava_instLinux
I don't know why the device does not show up. As this is a libusb specific question you will probably get better support for that problem on their mailing list. libusbJava only sees the devices which are seen by libusb.
Sorry, for interrupting this thread. I just open a previous thread about compiling into Mac. I had a problem. Could you be so kind to describe how did you compile into Mac? Did ant mac worked for you. I want to know if my problems is because Mac 1.5.
Sorry, again.
Cheers