简体   繁体   English

Java 8 Nashorn JJS – JavaScript控制台

[英]Java 8 Nashorn JJS – javascript console

a question to an expert: The latest Java 8 provides Javascript engine Nashorn. 一个专家的问题:最新的Java 8提供Javascript引擎Nashorn。 Its known that with the magic of invokedynamic the javascript is compiled to JVM bytecode, unlike Mozilla Rhino, which just interprets it. 众所周知,借助invokedynamic的魔力,可将JavaScript编译为JVM字节码,这与Mozilla Rhino只是将其解释为不同。

But what about JJS (javascript console). 但是JJS(JavaScript控制台)呢? Is there any compilation on the fly? 是否有即时编译文件? Or there is just interpretation? 还是只有解释?

Thanks! 谢谢!

jjs is just the name of a command-line tool, distributed with the JDK, that invokes Nashorn. jjs只是与JDK一起分发的调用Nashorn的命令行工具的名称。

See the Java Platform Tools Reference for details. 有关详细信息,请参见《 Java平台工具参考 》。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM