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:
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, 1805🔥, 0💬
Popular Posts:
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...