Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
Collections:
Other Resources:
Control.java - Rhino JavaScript Engine Example
How to run Control.java example provided in Rhino JavaScript 1.7R5?
✍: FYIcenter
You can follow this tutorial run Control.java example provided in Rhino JavaScript 1.7R5:
1. Compile the Control.java example:
>cd \fyicenter\rhino1_7R5\examples \fyicenter\rhino1_7R5\examples>\fyicenter\jdk-1.8.0\bin\javac -cp ..\js.jar Control.java
2. Run it with with JavaScript code specified in the command line:
\fyicenter\rhino1_7R5\examples>\fyicenter\jdk-1.8.0\bin\java -cp .\;..\js.jar Control obj == result obj.a == 1.0 obj.b[0] == x obj.b[1] == y {a:1, b:["x", "y"]}
⇒ SJP (Scripting for the Java Platform) API
⇐ RunScript.java - Run JavaScript as Command Option
2017-08-03, 1904🔥, 0💬
Popular Posts:
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...