gpt4 book ai didi

java - IllegalStateException : No language and polyglot implementation was found on the classpath. 确保 truffle-api.jar 位于类路径上

转载 作者:行者123 更新时间:2023-11-30 01:56:21 25 4
gpt4 key购买 nike

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>

但显然这还不够。

我还需要做什么才能修复此错误?

最佳答案

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

<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>

关于java - IllegalStateException : No language and polyglot implementation was found on the classpath. 确保 truffle-api.jar 位于类路径上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54384499/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com