<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Help</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/</link><description>Recent posts to Help</description><atom:link href="https://sourceforge.net/p/libusbjava/discussion/660151/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 13 Aug 2018 20:54:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libusbjava/discussion/660151/feed.rss" rel="self" type="application/rss+xml"/><item><title>Trying to use LibusbJava in Processing</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/caf34d11/?limit=25#e358</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone, I'd like to know if it would still be possible to use libusbjava like I found on &lt;a class="" href="http://tim.cexx.org/?p=470.html" rel="nofollow"&gt;this (really old) project &lt;/a&gt; in &lt;a class="" href="http://processing.org/" rel="nofollow"&gt;Processing&lt;/a&gt;...&lt;br/&gt;
I tried importing the library in Processing, and tried a little test code, but I get an error message :&lt;br/&gt;
“A library used by this sketch is not installed properly.” and “A library relies on native code that’s not available. Or only works properly when the sketch is run as a 32-bit application.”&lt;br/&gt;
Hope anyone has a solution,&lt;br/&gt;
Thanks forward !&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">olivi55</dc:creator><pubDate>Mon, 13 Aug 2018 20:54:47 -0000</pubDate><guid>https://sourceforge.net2bac8a121637765ce48a3bdcc0cc2f5e7c62f019</guid></item><item><title>java.lang.UnsatisfiedLinkError: ch.ntb.usb.LibusbJava.usb_error_no(I)I</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/09502311/?limit=25#830e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;almost kind of...&lt;br/&gt;
i did&lt;br/&gt;
1) install libusb, libusbx from package manager. libusb is a wrapper for libusbx i think so need them bothe&lt;br/&gt;
2) svn checkout then jump to revision 280, this afaik is the latest version that has the functions for 0.5.9 &lt;em&gt;I THINK&lt;/em&gt;&lt;br/&gt;
3) inside both libusbjava.cpp and libusbjava.h do a find/replace for inf_libubsjava_ -&amp;gt; usb_, this is where 0.5.9 expects to find the functions in the namespace or whatever its actually called.&lt;br/&gt;
4) edit project.properties, i pointed /usr/lib to /usr/lib64 because thats where my libusb.so were and also under linux specific i put in my paths for openjdk, (uncomment and modify includes2 and uncomment includes3), do "find / -iname "jni.h"" to get the path for includes2&lt;br/&gt;
5) build with "ant -v linux", see if there are any complaints. i get plenty of warings but no errors, if files are missing check your paths in project.properties.&lt;br/&gt;
6) copy .so to somewhere your 0.5.9 jar can find it.&lt;/p&gt;
&lt;p&gt;the reason i got a segfault earlier was apparently i don't have the correct permissions to query usb devices, running as root doesn't crash but now i have &lt;br/&gt;
LibusbJava.usb_set_configuration: Numerical result out of range&lt;br/&gt;
I'm too annoyed about the permissions thing to look into it right now but i'm sure theres something in the svn log about accepting numbers &amp;gt;0 vs &amp;gt;=0 but i can't remeber what it was for exactly.&lt;/p&gt;
&lt;p&gt;good luck nzasch keep me updated how you go.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pff</dc:creator><pubDate>Tue, 19 Jun 2018 21:17:48 -0000</pubDate><guid>https://sourceforge.net6a96675734b903520e7a3d515068c6deb9f18448</guid></item><item><title>java.lang.UnsatisfiedLinkError: ch.ntb.usb.LibusbJava.usb_error_no(I)I</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/09502311/?limit=25#a2c1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
Have you found a way to get ch.ntb.usb-0.5.9.jar running in linux?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nzasch</dc:creator><pubDate>Thu, 14 Jun 2018 10:36:42 -0000</pubDate><guid>https://sourceforge.netd1e2aac74f9ebe84da01945897a82ff35099d00c</guid></item><item><title>java.lang.UnsatisfiedLinkError: ch.ntb.usb.LibusbJava.usb_error_no(I)I</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/09502311/?limit=25#059e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I realised i have been silly, rather than the 1.1 so and jar the project was built with ch.ntb.usb-0.5.9.jar so i need to use an older .so that uses old libusb.&lt;br/&gt;
I didn't understand that the ch.ntb.usb-0.5.9.jar was the old version of libusbjava.&lt;br/&gt;
I tried building an older version from svn but java segfaults on one of the get string methods.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pff</dc:creator><pubDate>Fri, 08 Jun 2018 09:22:51 -0000</pubDate><guid>https://sourceforge.netc177f655272d3d306a9d52a57d66fe2f0e6d3cde</guid></item><item><title>java.lang.UnsatisfiedLinkError: ch.ntb.usb.LibusbJava.usb_error_no(I)I</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/09502311/?limit=25#da52</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;ok i'm trying to follow these instructions &lt;a href="https://github.com/tinwhisker/Owon-VDS1022" rel="nofollow"&gt;https://github.com/tinwhisker/Owon-VDS1022&lt;/a&gt; on fedora.&lt;br/&gt;
I dont know anything at all about java whatsoever.&lt;/p&gt;
&lt;p&gt;i can't find a libusb-java package on my package manager.&lt;br/&gt;
i followed the instructions here: &lt;a href="http://libusb-java.ch/installation/start" rel="nofollow"&gt;http://libusb-java.ch/installation/start&lt;/a&gt;&lt;br/&gt;
i run the jar file and get the folowing error: java.lang.UnsatisfiedLinkError: no usbJava in java.library.path&lt;/p&gt;
&lt;p&gt;so i renamed libLibusbJava-1_1.so to libusbJava.so and copied it into the working directory&lt;br/&gt;
i run the jar file and get the following error: java.lang.UnsatisfiedLinkError: ch.ntb.usb.LibusbJava.usb_error_no(I)I&lt;/p&gt;
&lt;p&gt;i think this means it can't find the libusb jar file.&lt;br/&gt;
i have tried moving the jar file into working directory, altering name case.&lt;/p&gt;
&lt;p&gt;java -verbose doesn't mention anything about loading the libusb jar file.&lt;/p&gt;
&lt;p&gt;so i don't really know what i'm doing and would appreciate any help thank you.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pff</dc:creator><pubDate>Thu, 07 Jun 2018 20:28:23 -0000</pubDate><guid>https://sourceforge.net1bf86483d76a19d6e297fffe02f833f9a4639f4b</guid></item><item><title>Libusb Java with Libusb-win32 filter driver</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/3eafb68b/?limit=25#e184</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I'm trying to make a small app for X-Plane (flight simulator) to control the LEDs and a small display on the Logitech/Saitek X52 Pro Joystick.&lt;/p&gt;
&lt;p&gt;I'm thinking i lines of:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[X-Plane]&lt;/span&gt; -&amp;gt; &lt;span&gt;[My java app]&lt;/span&gt; -&amp;gt; &lt;span&gt;[Libusb Java]&lt;/span&gt; -&amp;gt; &lt;span&gt;[Libusb-win32 filter driver]&lt;/span&gt; -&amp;gt; &lt;span&gt;[Logitech/Saitek driver]&lt;/span&gt; -&amp;gt; &lt;span&gt;[Joystick]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The reason I need the filter driver approach is that the Logitech/Saitek driver needs to be installed to make the Joystick still act as a joystick. (I tried with a more recent version of Libusb but the drivers needed stoped the Joystick working)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First question: Am I on the right track at all?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Further more, I have installed libusb-win32-bin-1.2.6.0.zip and managed to install the filter driver. No errors reported.&lt;/p&gt;
&lt;p&gt;I have installed Libusb Java (LibusbJava-1_1_64bit.zip) according to the instructions here and I have tried a small program based on the snippet from "First steps". I get as far as:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;usbDev.open();
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and there I get&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;java -cp .;lib\*;bin\ se.companion.usb.X52USB
Search Device:
Opening device.
Exception in thread "main" java.lang.NoClassDefFoundError: ch/ntb/inf/libusbJava/exceptions/LibusbException
        at ch.ntb.inf.libusb.Libusb.open(Native Method)
        at ch.ntb.inf.libusb.Device.open(Device.java:194)
        at se.companion.usb.X52USB.main(X52USB.java:54)
Caused by: java.lang.ClassNotFoundException: ch.ntb.inf.libusbJava.exceptions.LibusbException
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 3 more
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Second question: What's going on with the exception?&lt;/strong&gt; I don't se the package path "ch/ntb/inf/libusbJava..." in the LibusbJava.jar:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;jar tf lib\LibusbJava.jar
META-INF/
META-INF/MANIFEST.MF
ch/ntb/inf/libusb/ConfigurationDescriptor.class
ch/ntb/inf/libusb/Context.class
ch/ntb/inf/libusb/Descriptor.class
ch/ntb/inf/libusb/DescriptorType.class
ch/ntb/inf/libusb/Device.class
ch/ntb/inf/libusb/DeviceDescriptor.class
ch/ntb/inf/libusb/EndpointDescriptor.class
ch/ntb/inf/libusb/exceptions/AccessDeniedException.class
ch/ntb/inf/libusb/exceptions/DeviceListNotValidException.class
ch/ntb/inf/libusb/exceptions/EntityNotFoundException.class
ch/ntb/inf/libusb/exceptions/InvalidParameterException.class
ch/ntb/inf/libusb/exceptions/JavaIllegalDeviceHandleException.class
ch/ntb/inf/libusb/exceptions/JavaReferencesNotLoadedException.class
ch/ntb/inf/libusb/exceptions/JavaWrongEnvironmentException.class
ch/ntb/inf/libusb/exceptions/LibusbException.class
ch/ntb/inf/libusb/exceptions/LibusbIOException.class
ch/ntb/inf/libusb/exceptions/NoDeviceException.class
ch/ntb/inf/libusb/exceptions/NoMemoryException.class
ch/ntb/inf/libusb/exceptions/NotSupportedException.class
ch/ntb/inf/libusb/exceptions/OtherException.class
ch/ntb/inf/libusb/exceptions/OverflowException.class
ch/ntb/inf/libusb/exceptions/PipeException.class
ch/ntb/inf/libusb/exceptions/ResourceBusyException.class
ch/ntb/inf/libusb/exceptions/SysCallInterruptedException.class
ch/ntb/inf/libusb/exceptions/TimeoutException.class
ch/ntb/inf/libusb/exceptions/WrongContextException.class
ch/ntb/inf/libusb/Interface.class
ch/ntb/inf/libusb/InterfaceDescriptor.class
ch/ntb/inf/libusb/Libusb.class
ch/ntb/inf/libusb/LibusbJava.class
ch/ntb/inf/libusb/Speed.class
ch/ntb/inf/libusb/test/AT90USB1287Test.class
ch/ntb/inf/libusb/test/ByteBufferTest.class
ch/ntb/inf/libusb/test/LibusbJavaListTest.class
ch/ntb/inf/libusb/test/LibusbJavaTest.class
ch/ntb/inf/libusb/test/UseTestLibusbJava.class
ch/ntb/inf/libusb/TransferType.class
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Any help or pointers would be much appreciated, thanks!&lt;br/&gt;
/Erik&lt;/p&gt;
&lt;p&gt;The complete program I'm trying to run:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;package&lt;/span&gt; &lt;span class="n"&gt;se&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;companion&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;usb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;ch.ntb.inf.libusb.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;ch.ntb.inf.libusb.exceptions.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;ch.ntb.inf.libusb.test.&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;X52USB&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="n"&gt;static&lt;/span&gt; &lt;span class="n"&gt;void&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;String&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
        &lt;span class="n"&gt;Context&lt;/span&gt; &lt;span class="n"&gt;useCtx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                           
        &lt;span class="n"&gt;Device&lt;/span&gt; &lt;span class="n"&gt;usbDev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;useCtx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;                                                  &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LibusbException&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Init failed:"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;printStackTrace&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Search Device:"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;usbDev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Device&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;useCtx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x06a3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x0762&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;                           &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;

        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LibusbException&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Error occured: search"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;printStackTrace&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usbDev&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Opening device."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;                                                           &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
            &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Claim interface."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;claimInterface&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;                                                &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
            &lt;span class="n"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{(&lt;/span&gt;&lt;span class="n"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="mh"&gt;0x40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="mh"&gt;0x80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="mh"&gt;0x12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="mh"&gt;0x16&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="nb"&gt;int&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bulkTransfer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;                  &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                    &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Bulk tranfer 1 successful."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Bulk transfer 1 failed."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
            &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bulkTransfer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;                      &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Bulk tranfer 2 successful."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Bulk transfer 2 failed."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;releaseInterface&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;                                              &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
            &lt;span class="n"&gt;usbDev&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;close&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;                                                          &lt;span class="o"&gt;/*&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt; &lt;span class="o"&gt;*/&lt;/span&gt;
            &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Device closed."&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LibusbException&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Error occured: transfer"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;printStackTrace&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Erik</dc:creator><pubDate>Fri, 05 Jan 2018 20:21:58 -0000</pubDate><guid>https://sourceforge.net5cc80937e84d1222561430cc529a69793c0d42d0</guid></item><item><title>Can you still use ch.ntb.usb-0.5.9.jar?</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/54ec947d/?limit=25#aa7e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the fast reply. I looked at the API for the new libusbjava but do not see how I can transfrer my (big) program over from the classes shown in ch.ntb.usb-0.5.9.jar to the new distro so I am trying to use the libusb-win32-bin-1.2.6.0 distribution.&lt;/p&gt;
&lt;p&gt;This works fine in Win 7. On a Win-10 computer it is not working. However, the ch.ntb.usb-0.5.9. USBView program appears to work with my device just fine.&lt;/p&gt;
&lt;p&gt;The test programs included in the distro: testlibusb.exe and testlibusb-win.exe also both appear to work. This makes it an even bigger puzzle.&lt;/p&gt;
&lt;p&gt;My program hangs on the statement LibusbJava.setConfiguration(jhandle, 1) which returns -5, an error.&lt;/p&gt;
&lt;p&gt;Can I see the code for USBView or perhaps the testlibusb-win source. I assume that these must do a setConfiguration and I could see what I am doing wroing.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronald R Berliner</dc:creator><pubDate>Tue, 03 Oct 2017 01:24:23 -0000</pubDate><guid>https://sourceforge.netf187be2511487d2e5abf2970e6625b90dbe0bfc8</guid></item><item><title>Can you still use ch.ntb.usb-0.5.9.jar?</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/54ec947d/?limit=25#001a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;No, that won't be possible as the API changed. Please get the new jar file and try again. The linker should be able to successfully resolve all links.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Urs Graf</dc:creator><pubDate>Sun, 01 Oct 2017 19:22:27 -0000</pubDate><guid>https://sourceforge.net629c4ea00486e55c16eb4e593aa6d08a489cc49f</guid></item><item><title>Can you still use ch.ntb.usb-0.5.9.jar?</title><link>https://sourceforge.net/p/libusbjava/discussion/660151/thread/54ec947d/?limit=25#316c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have been trying to get LibusbJava-1_1 to work on both Win7 and Ubuntu 16.04 without success. I have tried both jdk7 and jdk8 on windows and openjdk7 on a VirtualBox Ubuntu 14.04 guest.&lt;/p&gt;
&lt;p&gt;I cannot find anything I have done wrong following the instructions from &lt;a href="http://libusb-java.ch/installation/start" rel="nofollow"&gt;http://libusb-java.ch/installation/start&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Both the Win7 and Ubuntu installations give errors on starting my application program that are quite similar:&lt;/p&gt;
&lt;p&gt;Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: ch.ntb.usb.LibusbJava.usb_error_no(I)I&lt;br/&gt;
    at ch.ntb.usb.LibusbJava.usb_error_no(Native Method)&lt;/p&gt;
&lt;p&gt;My priogram uses ch.ntb.usb-0.5.9.jar and the classes exposed there. These classes do not seem to be included in the API that is shown at &lt;a href="http://api.libusb-java.ch/" rel="nofollow"&gt;http://api.libusb-java.ch/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hence my question. Should I still be able to use ch.ntb.usb-0.5.9.jar?&lt;/p&gt;
&lt;p&gt;Thank you for your help in advance.&lt;/p&gt;
&lt;p&gt;Any comments would be appreciated.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronald R Berliner</dc:creator><pubDate>Fri, 29 Sep 2017 20:37:58 -0000</pubDate><guid>https://sourceforge.net387c899fd34c1e7ace38edf3e5815eb459e86b3a</guid></item></channel></rss>