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:
Rhino Tool - JavaScript Compiler
How to run the Rhino Tool JavaScript Compiler?
✍: FYIcenter.com
Rhino Tool JavaScript Compiler allows you to compile a JavaScript file into Java class file and run it as a Java program.
JavaScript Compiler 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 Compiler class:
toolsrc> javac -cp .:../../rhino-runtime-1.7.14.jar org/mozilla/javascript/tools/jsc/Main.java
3. Run JavaScript Compiler:
toolsrc> java -cp .:../../rhino-runtime-1.7.14.jar org.mozilla.javascript.tools.jsc.Main Hello.js toolsrc> ls -l Hello.* -rw-r--r-- 1 fyicenter staff 3915 Apr 9 22:16 Hello.class -rw-r--r-- 1 fyicenter staff 89 Apr 9 22:07 Hello.js
⇒ Rhino Tool - JavaScript Shell
⇐ Rhino JavaScript Example - RunScript.java
2022-04-13, 460🔥, 0💬
Popular Posts:
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...