java.lang.UnsatisfiedLinkError - Dll exists, but method name not found!!!
843829Jul 9 2005 — edited Jul 13 2005I m sure u all wud have seen the same subject hundreds of times.....but i have some problems...i would like someone to help me very urgently please......ok ::
I have to access an existing DLL [not created by mewhich i believe was done using Visual C++ - not sure of the version]. So i just load this dll in my java program using
static {
System.loadLibrary("ShcsClientLib");
}
public native static boolean OP_SenseCard(); // Sense the card [this is one of the methods in the dll]
...im sure the dll loads ...... coz if i give some other name...it says dll not found.....but the problem is it says Method Name not found.....the error is::
java.lang.UnsatisfiedLinkError: OP_SenseCard
at com.CMed.iface.CShcsMultiPockets.OP_SenseCard(Native Method)
at com.osi.test.Test3.main(Test3.java:27)
Exception in thread "main"
i have browsed to many help topics and forums..in all of them i find that.....after creating the class....i have to create the header file using javah...then create some c file..then wrap the dll....etc.....i have no idea of wat all these are......the thing is....i already have the DLL with me.....so now wat do i have to do??
also i tried to register the dll....but i get an error sayting..the dll was laoded but not registered. This file cannot be registered.
So please advice ASAP...very urgent please
regards
harish