IllegalStateException:在类路径上未找到语言和多语言实现.确保truffle-api.jar在类路径上 [英] IllegalStateException: No language and polyglot implementation was found on the classpath. Make sure the truffle-api.jar is on the classpath

查看:209
本文介绍了IllegalStateException:在类路径上未找到语言和多语言实现.确保truffle-api.jar在类路径上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IllegalStateException: No language and polyglot implementation was found on the
classpath. Make sure the truffle-api.jar is on the classpath.

我想在我的Java项目中使用GraalVM.

I wanted to use GraalVM in my Java project.

我将此依赖项添加到了pom.xml

I added this dependency to my pom.xml

<dependency>
  <groupId>org.graalvm.js</groupId>
  <artifactId>js-scriptengine</artifactId>
  <version>1.0.0-rc10</version>
</dependency>

但是显然这还不够.

我还需要做什么来解决此错误?

What else do I have to do to fix this error?

推荐答案

必须添加所有这些依赖项:

Had to add all these dependencies:

<dependency>
  <groupId>org.graalvm.js</groupId>
  <artifactId>js</artifactId>
  <version>1.0.0-rc10</version>
</dependency>
<dependency>
  <groupId>org.graalvm.js</groupId>
  <artifactId>js-scriptengine</artifactId>
  <version>1.0.0-rc10</version>
</dependency>
<dependency>
  <groupId>org.graalvm.truffle</groupId>
  <artifactId>truffle-api</artifactId>
  <version>1.0.0-rc10</version>
</dependency>

这篇关于IllegalStateException:在类路径上未找到语言和多语言实现.确保truffle-api.jar在类路径上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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