Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hidapi-jni 64-bits needed #12

Open
GoogleCodeExporter opened this issue Jan 13, 2016 · 3 comments
Open

hidapi-jni 64-bits needed #12

GoogleCodeExporter opened this issue Jan 13, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant