Am Dienstag, 31. Oktober 2006 13:01 schrieb OZER METIN: > Thanks for your answer; > > However, I have all these dll's in may library path and I can load them > using > > System.loadLibrary("opensc-pkcs11"); > System.loadLibrary("pkcs15init"); > System.loadLibrary("libeay32"); > System.loadLibrary("libssl32");
...loading the DLL by the JAVA JNI-plugin opensc-java-0.1.dll is not a question of relosving the dependant DLLs using java (via java.library.path), but rather a question of resoliving the libs by the OS itself. The JNI plugin of the PKCS#11 provider loads the PKCS#11 module via the Win32 API call LoadLibrary(). This function basically resolves DLLs in the following order: 1) %SystemRoot% 2) The current working directory of the process. 3) The directories listed in %PATH% > I look for dependecies using dependecy walker, but it did not find any > missing DLL's. I also look at the exported functions of opensc-pkcs11 and > C_GetFunctionList is in it. I could not figure out what is wrong. Yes, the error message is misleading, but it is true, taht the Win32 runtime loader returns successfully from LoadLibrary() and issues an error, when the first function in the opened DLL is resolved, in this case the resolution of C_GetFunctionList(). Life's hard with existing OSes isn't it ;->> > Have you got any further suggestions? Please check, that the above mentined DLLs live either in %SystemRoot% the CWD or a directory in %PATH%. Regards, Wolfgang _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel