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, 1368🔥, 0💬
Popular Posts:
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...