Hi
I am trying to access StarKey400 USB eToken. I am getting "java.security.ProviderException: Initialization failed" error.
I am getting error in 2nd line.

Java Code:
String configName = "C:/pkcs11.cfg";
Provider p = new sun.security.pkcs11.SunPKCS11(configName);  // Error in this line
Security.addProvider(p);
char[] pin = "12345".toCharArray(); 
KeyStore ks = KeyStore.getInstance("PKCS11");
ks.load(null, pin);
Config File:
name = eToken
library = C:/WINDOWS/system32/R5CoInst.dll

Please Help

ajk