Skip to content
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

JDK Versions section could be partly adjusted to refer to Java language levels rather than JDK versions #216

Open
SonicGDX opened this issue Jul 22, 2024 · 2 comments
Labels
PRs welcome Feel free to submit a PR for this

Comments

@SonicGDX
Copy link
Contributor

SonicGDX commented Jul 22, 2024

The information in the table in the Versions section of https://libgdx.com/wiki/articles/java-development-kit-selection seems accurate to my knowledge (after it was updated in #198), except that by versions it is referring to the JDK version when I think language level is more appropriate (although maybe not for stuff about DCEVM and the notes about oracle licensing and which JDKs are LTS)

  • According to the readme from gdx-liftoff, all stable JDK releases from 8 to 22 work (I'd keep the part about LTS releases being recommended though), but JDK 17 or higher is recommended because the newer android tools versions used require a JDK of 17 or higher.
@SonicGDX SonicGDX changed the title JDK Versions section could be partly adjusted to talk about language levels JDK Versions section could be partly adjusted to refer to Java language levels rather than JDK versions Jul 22, 2024
@Frosty-J
Copy link
Collaborator

Frosty-J commented Jul 23, 2024

I agree... needing to use multiple JDKs is atypical. In most cases, source/targetCompatibility takes care of this.

Android versions don't fit nicely into buckets and I don't know what that information (JDK 7 for Android 6, JDK 8 for Android 7...) is based on. For all intents and purposes, Android presently requires JDK 17 for the reason you say and is happy with any language level up to and including 17, no matter how low your minSdk. And what is with the empty ARM column?

@crykn
Copy link
Member

crykn commented Jul 23, 2024

This page has been bugging me since it has been added... IMO it should also do a better job at explaining the difference between JRE, JDK, Language Level, sourceCompatibility, targetCompatibility etc.

@crykn crykn added the PRs welcome Feel free to submit a PR for this label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PRs welcome Feel free to submit a PR for this
Projects
None yet
Development

No branches or pull requests

3 participants