vparot / javahidapi

Automatically exported from code.google.com/p/javahidapi
0 stars 0 forks source link

hidapi-jni 64-bits needed #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When I compile your's HIDAPITest, I get an expect, listed below...
2.
3.

What is the expected output? What do you see instead?
java.lang.UnsatisfiedLinkError: 
C:\Users\Viktor\Documents\NetBeansProjects\HIDAPITest\src\hidapi-jni.dll: Can't 
load IA 32-bit .dll on a AMD 64-bit platform
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at hidapitest.HIDAPITest.<clinit>(HIDAPITest.java:25)
Could not find the main class: hidapitest.HIDAPITest.  Program will exit.
Exception in thread "main" Java Result: 1

What version of the product are you using? On what operating system?
javahidapi-20111221
Windows7
JAVA build 1.6.0_29-b11 64 bits

Please provide any additional information below.

Thank's , Viktor

Original issue reported on code.google.com by gintnerv...@gmail.com on 13 Mar 2012 at 9:44

GoogleCodeExporter commented 8 years ago
Hi ! I solved it. I compiled x64 dll-s for Windows7. It seems every OK but 
there's a little bit problem. I'am testing it width Microchip LowPin count 
developer kit, but I unable to write and read to USB. ( The developer kit work 
properly width libusb.dll project ). I would to write only one byte ( 0x80h ) 
to USB, the endpoint adress is 0x01h. When I write it, don't doing anything. Do 
you have an idea ? Where can I find the endpoint and USB device configuration 
data ? Thank's. Viktor

Original comment by gintnerv...@gmail.com on 17 Mar 2012 at 8:55

GoogleCodeExporter commented 8 years ago

Original comment by kroko...@gmail.com on 1 Aug 2012 at 1:39

GoogleCodeExporter commented 8 years ago
Hi, I have the same problem but the x64 version of the dll works but not the 
x32 one, even after I rebuilt it for x32 in Visual Studio.

Original comment by romain.r...@gmail.com on 18 Feb 2015 at 1:58