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:
java.scripting/com.sun.tools.script.shell.Main - JavaScript Shell
How to run "java.scripting/com.sun.tools.script.shell.Main" tool from JDK lib\modules JImage file?
✍: FYIcenter
"java.scripting/com.sun.tools.script.shell.Main" tool allows you to start the Nashorn JavaScript shell.
"java.scripting/com.sun.tools.script.shell.Main" tool is supported by the jmods\jdk.scripting.jmod module file, which is also linked into the lib\modules JImage file.
"java.scripting/com.sun.tools.script.shell.Main" tool using the lib\modules JImage file as described below using JDK 17 as an example:
fyicenter> %JDK_HOME%\bin\java --module java.scripting/com.sun.tools.script.shell.Main script engine for language js can not be found
So there is no default JavaScript engine in JDK 17.
If you run the same command in JDK 11, you will get the Nashorn engine:
fyicenter> %JDK_HOME%\bin\java --module java.scripting/com.sun.tools.script.shell.Main Warning: Nashorn engine is planned to be removed from a future JDK release nashorn> print("Hello world!"); Hello world! nashorn> 1+2; 3 nashorn> quit()
⇒ java.xml/com.sun.org.apache.xerces.internal.impl.xpath.regex.REUtil - Regular Expression Tool
⇐ java.base/sun.security.tools.keytool.Main - "keytool" Command
2019-10-18, 1553🔥, 0💬
Popular Posts:
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
Where to find answers to frequently asked questions on Downloading and Installing Connector/J - JDBC...
What Is in Xerces-J-bin.2.12.2.zip? Xerces-J-bin.2.12.2.zip file is the distribution package ZIP fil...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...