Closed mikesperber closed 8 years ago
Hey @mikesperber,
This is great work. I see you chose to use jrunscript
instead of jjs
. Looking at the docs jrunscript
is marked as experimental and depending on the setup, it might also be an interface to Rhino. I tried jjs
instead and it works. Is there any particular reason to use jrunscript
vs jjs
?
Here are the changes to use jjs
and I'd rather use that if there are no strong reasons to use jrunscript
. Let me know what you think and if the proposed changes work for your setup.
jjs
is not part of the Mac OS X Java distribution. (I didn't see any docs marking jrunscript
experimental.)
I correct myself: jjs
is somewhere in the bowels of the Mac OS X Java installation, but not on the standard path:
http://stackoverflow.com/questions/15306892/nashorn-in-jdk8-b80
The link I provided earlier, http://docs.oracle.com/javase/7/docs/technotes/tools/share/jrunscript.html marks it experimental and that it "may not be available in future versions". Should we point to that SO question in the docs for the Nashorn installation?
Let me know if it does work with jjs
.
Sorry for taking sooo long trying this out: Indeed, jjs
works. Many thanks!
Here's the Nashorn runner that grew out of #44. We couldn't get Rhino to work in any satisfactory way.