Subj : Re: disable java execution in Rhino To : alacali From : Igor Bukanov Date : Wed Apr 23 2003 04:31 pm alacali wrote: > Hi, > > is there a way to prevent Rhino to execute java in js-scripts? If you mean how to disable LiveConnect, then replace Context cx = Context.enyter(); try { ... } finally { Context.exit(); } by Context cx = Context.enyter(); try { cx.setClassShutter(new ClassShutter() { public boolean visibleToScripts(String fullClassName) { return false; } }); ... } finally { Context.exit(); } See JavaDocs for org.mozilla.javascript.ClassShutter for details Regards, Igor .