How do you use Java to call the Rhino Javascript interpreter?
Asked Answered
R

1

10

is there any example on using java method to call rhino-javascript function and return it back to java? The only example i found for rhino is only typing command on the rhino shell.

Randle answered 27/2, 2010 at 6:19 Comment(0)
C
11

Sure, here's the Rhino embedding tutorial. I've done this in the past and it works very well. You'll want to scroll down to this section.

Coniine answered 27/2, 2010 at 6:22 Comment(1)
Sadly, links are not working anymore. Try github.com/graalvm/graal-js-jdk11-maven-demoProtrude

© 2022 - 2024 — McMap. All rights reserved.