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:
jdk.scripting.nashorn/jdk.nashorn.tools.Shell - JavaScript Shell Tool
How to run "jdk.scripting.nashorn/jdk.nashorn.tools.Shell" tool from JDK lib\modules JImage file?
✍: FYIcenter
"jdk.scripting.nashorn/jdk.nashorn.tools.Shell" tool allows you to run the Nashorn JavaScript Engine interactively. 
"jdk.scripting.nashorn/jdk.nashorn.tools.Shell " tool is supported by the jmods\jdk.scripting.nashorn.shell.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.
You can run the "jdk.scripting.nashorn/jdk.nashorn.tools.Shell " tool using the lib\modules JImage file as described below using JDK 11 as an example:
fyicenter> set JDK_HOME=\fyicenter\jdk-11.0.1
fyicenter> %JDK_HOME%\bin\java --module jdk.scripting.nashorn/jdk.nashorn.tools.Shell 
Warning: The jjs tool is planned to be removed from a future JDK release
jjs> print('Hello World!');
Hello World!
jjs> 1+2
3
jjs> quit()
Note that Nashorn JavaScript engine has been removed from JDK 17.
⇒ jdk.scripting.nashorn.shell/jdk.nashorn.tools.jjs.Main - "jjs" Command
⇐ jdk.rmic/sun.tools.javac.Main - Compiler Tool
2019-05-14, ∼2187🔥, 0💬
Popular Posts:
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
Saxon-HE (home edition) is an open source product available under the Mozilla Public License. It pro...
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...