Subj : Re: JDK access inside a protocol handler (written in JavaScript) To : netscape.public.mozilla.jseng From : Pejb Date : Tue Sep 20 2005 03:32 pm Yes, I digged a bit and found the right way! function run(host) { javascript:netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); // create an nsILocalFile for the executable var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); file.initWithPath("d:\\bin\\putty.exe"); // create an nsIProcess var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess); process.init(file); // Run the process. // If first param is true, calling process will be blocked until called process terminates. // Second and third params are used to pass command-line arguments to the process. var args = [host]; process.run(false, args, args.length); .