First you have to initialize NSS, indirectly through the initialization of PSM (Personal Security Manager)
Components.classes["@mozilla.org/psm;1"].getService(Components.interfaces.nsISupports);
Also you should first try
to open NSS library without applying a path, and if you catch
an exception then try again with "GreD".