Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Java 6 include a program that can run javax.script (Rhino JS) files?

I found that Java 6 includes Rhino JS (except for one or two minor pieces), as javax.script. Pretty cool!

Does a Java 6 install (JRE or JDK, either) contain a binary that I can simply point to a .js file to run? (I think it would be great to be able to provide source code for others to read and run, without compilation, and require only that Java be installed.) Or do I have to build the little 8-line program in the docs?

like image 300
Ken Avatar asked Mar 07 '26 00:03

Ken


1 Answers

Yes, There's jrunscript

like image 113
nos Avatar answered Mar 08 '26 13:03

nos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!