Even presuming that you are using that directly. And unless you have a static library for that, which is not the same as the dll, there is no way you are going to link to that statically. I am rather certain that the missing component, hidapi.dll, has nothing to do with C/C++ compiler libraries. That also presumes that the library that you are linking to is available as part of the C/C++ compiler library.
CANT FIND THE OMNISPHERE DLL CODE
The second adds the libraries code into your binary. The first means that you deliver or expect libraries on the system besides your binary. There are only two options: dynamic linking or static linking. Is there any configuration setting in VS 2010 to specify not to use Visual C++? It is technically possible to create a C/C++ application without using compiler libraries but it that is an esoteric subject that has nothing to do with anything you might be doing with JNI. Should the hidapi.h too must be put in classpath? Has any body has any idea about this.? But if that is the case, it must not run in my system too right? The only linked files are jni.h and a custom library hidapi.h.
I saw in a few forums to ensure the class names are correct. Hidsignalapi.UsbPctoolJni is the class where i load the dll file, and line 46 is exactly the line where i wrote 'System.loadLibrary("hidapi") ' S\System32\hidapi.dll: Can't find dependent librariesĪt $NativeLibrary.load(Native Method)Īt 0(Unknown Source)Īt (Unknown Source)Īt 0(Unknown Source)Īt (Unknown Source)Īt hidsignalapi.UsbPctoolJni.(UsbPctoolJni.java:46) When i tried to have the verbose messages through -verbose:jni, I get the following message.Įxception in thread "AWT-EventQueue-0" : C:\Window My code gives an exception : C:\Windows\System32\hidapi.dll: Can't find dependent libraries. So far so good.īut when i put the dll file in another machine the dll file is not getting loaded. When i run it in my machine (after of course, putting the dll file in System32 folder - Am using Wn 7 for your info. I have, after linking required libraries in c and compiling it, created a dll file 'hidapi.dll', which i load in java program via System.loadLibrary("hidapi") and compile it.
3.7K Java and JavaScript in the Database.