Subj : Re: Java to Javascript using Rhino To : netscape.public.mozilla.jseng From : Martin Honnen Date : Thu Sep 22 2005 08:49 pm Aniruddha Thakur wrote: > % > java scripts/javaToJS << Using Part#2 (recompiled and modified > the script) > org.mozilla.javascript.EcmaError: ReferenceError: "print" is not > defined. (scripts/helloworld.js#1) You are on the wrong path I think, the JavaScript engine does not define a function named print. The shell example that hosts the JavaScript engine defines such a function but it is not part of the engine itself. Thus if your Java program hosts the engine (uses the engine) you do not have a print function unless you set one up yourself as a host object. -- Martin Honnen http://JavaScript.FAQTs.com/ .