Rhino JavaScript Example - RunScript.java


How to run Rhino JavaScript Example, RunScript.java?

✍: FYIcenter.com


RunScript.java is an example program provided in the rhino-Rhino1_7_14_Release.zip package. It allows you to run JavaScript statements in a single command line.

Here is how to use RunScript.java, if you have rhino-runtime-1.7.14.jar installed:

fyicenter> cd rhino-Rhino1_7_14_Release

rhino-Rhino1_7_14_Release> cd examples

examples> java -cp ../../rhino-runtime-1.7.14.jar RunScript.java "Math.PI;"

examples> java -cp ../../rhino-runtime-1.7.14.jar RunScript.java 'function p2k(p) {return p*0.453592;} p2k(5.0);'


Rhino Tool - JavaScript Compiler

Rhino JavaScript Example - Shell.java

Rhino JavaScript Examples and Tools

⇑⇑ FAQ for Rhino JavaScript Java Library

2022-04-13, 565🔥, 0💬