What Is Rhino?
Why Use Rhino?
How To Download And Install Rhino
If you prefer to download binaries direct from Mozilla, you can download them here.
If you want to download the source code for rhino, you can download it here from github
How To Install Rhino In Debian Or Ubuntu
To install rhino in Debian or Ubuntu, simply type the command:
sudo apt-get install rhino
How To Use Rhino To Run A Script From A File
<script> and </script>
Once you have your .js file, open a terminal, and navigate to where your .js file is. Assuming your file is called example.js, do this command
How To Use Rhino Interactively From The Shell
To use rhino interactively, simply open a terminal and type
then you will see output with something like
Rhino 1.7 release 4 2014 06 02 js>
From here, you can write interactive Javacript. For example,
you can type:
var y= ["hello", "there"] js> y hello,there
How To Learn To Use Rhino
Where To Get Rhino documentation
The official Mozilla site for rhino has a great documentation site here
In addition, you can read about the rhino shell here. In Linux you can type
to get some brief help on the rhino command.