Missing "print" function using Rhino 1.7R2

27 views
Skip to first unread message

Kevin Clark

unread,
Feb 23, 2012, 3:11:10 PM2/23/12
to mozilla-rhino
I've recently switched from using the java distributed version of
Rhino (via BSF) to using Rhino 1.7R2 via the native interface, and
noticed that while everything else seems to work fine, the "print"
function appears to have gone missing.

Is this expected? Is there something I need to do to enable rhino
extensions?

Thanks in advance.

Kevin Clark

unread,
Feb 23, 2012, 4:19:51 PM2/23/12
to mozilla-rhino
On Feb 23, 12:11 pm, Kevin Clark <kev...@greplin.com> wrote:
> I've recently switched from using the java distributed version of
> Rhino (via BSF) to using Rhino 1.7R2 via the native interface, and
> noticed that while everything else seems to work fine, the "print"
> function appears to have gone missing.

I've moved to 1.7R3 and still have the same issue, so I suspect it may
be a configuration problem. My language version is VERSION_1_8.

Kevin Clark

unread,
Feb 23, 2012, 6:21:31 PM2/23/12
to mozilla-rhino
Scratch this - The JVM implementation defines their own version of
print() in the main runtime. See
com.sun.script.javascript.RhinoScriptEngine for more.
Reply all
Reply to author
Forward
0 new messages