Java Agent : X509 certificate exception!

Hi all,I’m trying to write a Java agent to update the internet certificate of people on the domino directory. But I have this error message :

java.security.Cert.CertificateException: X509 not found

and here is the ligne concerned :

CertificateFactory cf= CertificateFactory.getInstance(“X.509”);

The problem is when I run it as an independant (outside of Domino) application I have no problems !

Regards

E.H.Y