gurkenlabs / litiengine

LITIENGINE 🕹 The pure 2D java game engine.
https://litiengine.com/
MIT License
718 stars 94 forks source link

Unable to run version 0.6.0 of litiengine, problem with JAVA 21 #794

Closed bkebir closed 7 months ago

bkebir commented 7 months ago

Describe the bug When you run the project that you haven't been able to run for 3 weeks (since you updated the project)

Stack Trace The error message you get either in your console or the crash.txt located in your program's root directory. Program.java is a non-project file, only syntax errors are reported

To Reproduce Steps to reproduce the behavior:

  1. Go to 'run'

Expected behavior I want to be able to launch the project.

Screenshots image image

Your System:

Additional context I've updated my java to version 21 but it still doesn't work, but it works again when you go back to an earlier version of the project

bkebir commented 7 months ago

We think that the problem stems from a dependency to which we no longer have access, which may have been public at the outset and has now been made private de.gurkenlabs.semverguru:de.gurkenlabs.semverguru.gradle.plugin:1.3\r\nNo matching variant of de.gurkenlabs:semverguru:1.3 was found.

nightm4re94 commented 7 months ago

This is not the case. The error message you've mentioned tells me that you are not compiling with Java 21. Please make sure that not only the project JDK is Java 21, but also that Gradle is using the project JDK.

nightm4re94 commented 7 months ago

Have you been able to resolve this?

Maxime91680 commented 7 months ago

Unfortunately not, we have the right JDK but we don't know if gradle can retrieve the right JDK, we've also tried adding dependencies and plugins as you advised but nothing works

nightm4re94 commented 7 months ago

Is there a reason you are preferring VSCode over a full Java IDE such as IntelliJ or Eclipse? The Gradle integration in IntelliJ, for example, is much better and the community can be more helpful if you're using a similar toolchain.