When embedding a JavaScript interpreter (Rhino) into a Java application (to be able to script that application), how would one go about restricting the Java packages that are av
how about just saying:
java = undefined; com = undefined; Packages = undefined;
in an initial script which is loaded first.