Open ljy1058318852 opened 7 months ago
@chumer God, help me
I have the same issue.
Same here!
Same here!
I have no problem now, but I don't remember the reason. I have downgraded the version and now I am using 22.3.5
`
Same issue here. 🥹
Sorry for the delay.
The problem is likely:
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
<version>23.0.3</version>
</dependency>
<dependency>
<groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId>
<version>23.1.2</version>
</dependency>
There are two incompatible versions of JS and Truffle. Please only use the same version for both. See: https://www.graalvm.org/latest/reference-manual/embed-languages/#dependency-setup
I have a hard time reproducing this. My sample pom does not fail:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.graalvm.test</groupId>
<artifactId>basic-embedding</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>23.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
<version>23.0.3</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>23.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId>
<version>23.1.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
There must be something wrong with the Java command line. Can someone having this issue please share their full Java command line? Thanks!
ERROR:
calling code:
Project framework : Javafx java jdk : 17 My MVN configuration :