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 Tool - JavaScript Shell
How to run the Rhino Tool JavaScript Shell?
✍: FYIcenter.com
Rhino Tool JavaScript Shell allows you to run JavaScript statements in
an interactive shell.
JavaScript Shell is included in the rhino-Rhino1_7_14_Release.zip package in the "toolsrc" sub-directory.
Here is how to use the JavaScript Compiler:
1. Use "javac" to prepare supporting classes:
fyicenter> cd rhino-Rhino1_7_14_Release rhino-Rhino1_7_14_Release> cd toolsrc toolsrc> javac -cp ../../rhino-runtime-1.7.14.jar org/mozilla/javascript/tools/*.java
2. Use "javac" to prepare the Shell class:
toolsrc> javac -cp .:../../rhino-runtime-1.7.14.jar org/mozilla/javascript/tools/shell/Main.java
3. Run JavaScript Shell:
toolsrc> java -cp .:../../rhino-runtime-1.7.14.jar org.mozilla.javascript.tools.shell.Main
Rhino 1.7.14
js> Math.PI;
3.141592653589793
js> System.out.println("Hello World!");
js: uncaught JavaScript runtime exception: ReferenceError: "System" is not defined.
js> java.lang.System.out.println("Hello World!");
Hello World!
js> load("Hello.js");
Hello, welcome to FYIcenter.com!
js> <Ctrl-C>
⇒ Using Rhino JavaScript Library in Java Programs
⇐ Rhino Tool - JavaScript Compiler
2022-04-13, ∼905🔥, 0💬
Popular Posts:
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool, which can be invoked by the "jdeps" co...
JDK 17 java.rmi.jmod is the JMOD file for JDK 17 RMI (Remote Method Invocation) module. JDK 17 RMI m...
JDK 17 java.compiler.jmod is the JMOD file for JDK 17 Compiler module. JDK 17 Compiler module compil...
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...