【问题标题】:Usage of nashorn javascript enigne along with jdk 1.6使用 nashorn javascript 引擎和 jdk 1.6
【发布时间】:2018-02-20 09:49:30
【问题描述】:

我的代码在 jdk 1.6/jdk 1.8 中使用 rhino javascript 引擎(带有外部 rhino jars)。无论如何我可以在 jdk 1.6 中实现 nashorn javascript 引擎吗?

【问题讨论】:

    标签: javascript rhino nashorn jsr223 javascript-engine


    【解决方案1】:

    没有。 Nashorn 使用invokedynamic,这意味着您至少必须在jdk7 上。另外我认为 nashorn 代码中使用了 jdk 8 Java 结构——这意味着你必须使用 jdk8+。

    【讨论】:

      猜你喜欢
      • 2019-01-22
      • 2019-07-14
      • 1970-01-01
      • 2015-03-03
      • 1970-01-01
      • 1970-01-01
      • 2017-07-09
      • 2016-11-25
      • 2020-12-26
      相关资源
      最近更新 更多