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, 1578🔥, 0💬
Popular Posts:
JDK 8 jconsole.jar is the JAR file for JDK 8 JConsole, which is a graphical monitoring tool to monit...
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may ...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...