Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Rhino JavaScript Example - Shell.java
How to run Rhino JavaScript Example, Shell.java?
✍: FYIcenter.com
Shell.java is an example program provided in the
rhino-Rhino1_7_14_Release.zip package.
It allows you to run JavaScript statements in an interactive shell.
Here is how to use Shell.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 Shell.java
js> Math.PI;
3.141592653589793
js> java.lang.System.out.println("Hello World!");
Hello World!
js> load("Hello.js");
Hello, welcome to FYIcenter.com!
js> <Ctrl-C>
Here is the Hello.js file used in the above test:
var name = "FYIcenter.com";
java.lang.System.out.println("Hello, welcome to "+name+"!");
⇒ Rhino JavaScript Example - RunScript.java
⇐ Download Rhino JavaScript rhino-Rhino1_7_14_Release.zip
2022-04-21, ∼1040🔥, 0💬
Popular Posts:
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
maven-compat-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Compact module. The JAR file name may ...