Subj : Rhino Problem To : netscape.public.mozilla.jseng From : Edwin Date : Wed Aug 24 2005 04:09 pm Hello, I have a very small java applet which uses the Rhino shell code to execute small scripts. The applet functions correctly when used within JBuilder but it generates errors when used within a browser or in WebStart. The errors are about "Packages" and "java", it seems that neither is declared when using the applet. The applet functions correctly under Rhino 1.5R4 but it does not under neither 1.5R5 or 1.6R1. The relevant code follows: import org.mozilla.javascript.tools.shell.Main; import org.mozilla.javascript.*; .... Main shell; .... Context cx = Context.enter(); cx.setWrapFactory(new UnwrappedWrapFactory()); cx.setOptimizationLevel(-1); Scriptable scope = shell.getGlobal(); shell.processFile(cx, scope, lib); Thanks, Edwin S. Ramirez .