Java ScriptEngine支持的语言 [英] Java ScriptEngine supported languages

查看:64
本文介绍了Java ScriptEngine支持的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java具有 ScriptEngine 系统,该系统可让您运行/用其他语言评估语句.
我知道事实上支持JavaScript,但是找不到其他语言可以使用它.
例如,是否实现了Ruby?

Java has a ScriptEngine system that allows you to run/evaluate statements in a different language.
I know for a fact that JavaScript is supported, but I couldn't find any other languages to work with it.
Is, for example, Ruby implemented?

推荐答案

..我知道JavaScript受支持,..

..I know for a fact that JavaScript is supported,..

,从技术上讲,是 ECMAscript .

..但我找不到其他语言可以使用.例如,是否实现了Ruby?

.. but I couldn't find any other languages to work with it. Is, for example, Ruby implemented?

不.默认情况下,ECMAscript引擎是我上次听到的默认情况下唯一包含的引擎.

No. The ECMAscript engine is the only one included by default, the last time I heard.

更新

以下Pointy的评论暗示Nashorn引擎已被弃用,并将很快被删除.

The comments of Pointy below, suggest that the Nashorn engine has been deprecated and will be removed 'soon'.

这篇关于Java ScriptEngine支持的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆