我使用Java 8并使用默认的JavaScript引擎(Nashorn).
我想看看它与"高度炒作"的GRAAL JS相比如何.看到:
特别是因为我听说他们想要弃用nashorn:
有人知道如何(轻松)访问graaljs吗?我希望找到一个pom.xml或一个下载jar文件但不运气的地方
Run Code Online (Sandbox Code Playgroud)IllegalStateException: No language and polyglot implementation was found on the classpath. Make sure the truffle-api.jar is on the classpath.
我想在我的 Java 项目中使用 GraalVM。
我将此依赖项添加到我的 pom.xml 中
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>1.0.0-rc10</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但显然这还不够。
我还需要做什么才能修复此错误?