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, 1693🔥, 0💬
Popular Posts:
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...