Your GraalVM is 21, maybe one of your dependencies has 24.
Your graalvm needs to process Java 24 class files, so you need a newer graal 
version

Best Regards
Mirko Friedenhagen
-- 
Sent with my mobile

Am 15.08.25 um 11:57 schrieb common1...@tutanota.com.INVALID

> I am testing graalvm espresso.
> $ java --version
> java 21.0.2 2024-01-16 LTS
> Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 
> 21.0.2+13-LTS-jvmci-23.1-b33)
> Espresso 64-Bit VM Oracle GraalVM 21.0.2+13.1 (build 21-espresso-24.2.0, 
> mixed mode)
> 
> 
> I created a vanilla java program, which can be compiled and ran without a 
> problem. However, when attempting to manage the project using maven 
> (v.3.9.11), mvn throws 
> 
> An exception occurred while executing the Java class. Unsupported major.minor 
> version 68.0. 
> 
> I know its version mismatched error. So I add related fields with version 24 
> such as maven.compiler.source, 
> maven.compiler.target, 
> source, 
> target 
> 
> to pom.xml as below. But the problem remains. What's the correct fields or 
> version value to specify for pinning the jdk source and target version? Or 
> anything that I also need to configure or miss? Thanks.
> 
> 
> <?xml version="1.0" encoding="UTF-8"?><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 
> http://maven.apache.org/maven-v4_0_0.xsd";>   ...     <properties>        
> <java.version>24</java.version>        
> <maven.compiler.source>24</maven.compiler.source>        
> <maven.compiler.target>24</maven.compiler.target>     </properties>      
> <dependencies>        <dependency>            
> <groupId>org.graalvm.espresso</groupId>            
> <artifactId>continuations</artifactId>            <version>24.2.0</version>   
>      </dependency>      </dependencies>           <build>        <plugins>    
>         <plugin>                <groupId>org.apache.maven.plugins</groupId>   
>              <artifactId>maven-compiler-plugin</artifactId>                
> <version>3.14.0</version>                <configuration>                    
> <source>24</source>                    <target>24</target>                
> </configuration>            </plugin>        </plugins>    </build></project>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to