Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

I wanted to use GraalVM in my Java project.

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>

but apparently that's not enough.

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

like image 293
theonlygusti Avatar asked Jan 27 '23 20:01

theonlygusti


1 Answers

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>
like image 111
theonlygusti Avatar answered Jan 29 '23 08:01

theonlygusti