Subj : Re: Calling a compiled script with arguments To : redcoat From : Igor Bukanov Date : Thu Dec 16 2004 10:44 pm redcoat wrote: > If the script is already compiled in a file, is there a way to "load" > it and then execute it with different variables? You can compile script to JVM class file using either JS compiler tool, http://www.mozilla.org/rhino/jsc.html or via ClassCompiler, http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/optimizer/ClassCompiler.html , from Java program. Then you can load the class and instantiate it which gives Script instance that you can use as in the above example. Regards, Igor .