Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bkebir opened this issue Nov 19, 2023 · 5 comments
Closed

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

bkebir opened this issue Nov 19, 2023 · 5 comments

Comments

@bkebir
Copy link

bkebir commented Nov 19, 2023

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:

  • OS: [e.g. Windows]
  • LITIENGINE version: [e.g. 0.6.0]
  • Java JDK/JRE version: [e.g. 21.0.1 2023-10-17]
  • Screen resolution: [e.g. 1920x1080]

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
Copy link
Author

bkebir commented Nov 20, 2023

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
Copy link
Member

nightm4re94 commented Nov 20, 2023

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
Copy link
Member

Have you been able to resolve this?

@Maxime91680
Copy link
Contributor

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
Copy link
Member

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.

@gurkenlabs gurkenlabs locked and limited conversation to collaborators Nov 28, 2023
@nightm4re94 nightm4re94 converted this issue into discussion #796 Nov 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants