Hi, This environment is all new to me but I got compile to work on 32-bit XP by removing the -m64 and the reference to the 64-bit DLL. But I am still getting an error when unit test tries to run:
F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava>ant "Windows 64Bit" Buildfile: F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava\build.xml
clean:
Windows Resource: [echo] Generating rc-File: LibusbJava.rc [echo] Compiling res-File: LibusbJava.res
Build LibusbJava Test Windows:
Build LibusbJava Test: [echo] Building Library for unit tests: [echo] Building Unit-Tests with JDK
LibusbJava Test Windows: [echo] Executing Unit-Tests [exec] Error loading library (126)
BUILD FAILED F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava\build.xml:138: exec returned: -1
Total time: 21 seconds
F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava>
I would appreciate any help to solve this issue.
If I try to use the DLL with the Libusbx DLL (both in system32) and run any of the tests (like UsbView) I get a runtime error.
Thanks,
Could you please check where your JRE is located? And is this path to the JRE included in the %PATH% variable?
Log in to post a comment.
Hi,
This environment is all new to me but I got compile to work on 32-bit XP by removing the -m64 and the reference to the 64-bit DLL. But I am still getting an error when unit test tries to run:
F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava>ant "Windows 64Bit"
Buildfile: F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava\build.xml
clean:
Windows Resource:
[echo] Generating rc-File: LibusbJava.rc
[echo] Compiling res-File: LibusbJava.res
Build LibusbJava Test Windows:
Build LibusbJava Test:
[echo] Building Library for unit tests:
[echo] Building Unit-Tests with JDK
LibusbJava Test Windows:
[echo] Executing Unit-Tests
[exec] Error loading library (126)
BUILD FAILED
F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava\build.xml:138: exec returned: -1
Total time: 21 seconds
F:\Dropbox\Projects\Java\LibUSBJavaSVN\trunk\LibusbJava>
I would appreciate any help to solve this issue.
If I try to use the DLL with the Libusbx DLL (both in system32) and run any of the tests (like UsbView) I get a runtime error.
Thanks,
Could you please check where your JRE is located? And is this path to the JRE included in the %PATH% variable?