JME on JDK 16

Hello,

I don’t know how many people have tried, but I figured I would report on running jme on jdk 16.
I was able to compile, run tests, and run a jme app without any issues on jdk 16.
This is not surprising as I did not see any deprecations that should cause us problems, but I figured I would check.

Anyways, for anyone wondering, it does work.

Thanks,
Trevor

8 Likes

I haven’t done any explicit testing per se, but I’m also running my jME application on JDK 16 without issues.

1 Like

But note that the latest release of Gradle (v6.8.3) doesn’t support any JDK beyond 15.

https://docs.gradle.org/current/userguide/compatibility.html

1 Like

Yes - I’m using a pre-release Gradle v7 right now, though with the new-ish Java Toolchains feature you can build against a JDK that Gradle itself doesn’t run on:

java {
	toolchain {
		languageVersion = JavaLanguageVersion.of(16)
	}
}
2 Likes

Good to know. Thank you :slight_smile:

Making a post like this is really useful for Googlers who just want answers.

2 Likes

Note that ReflectionAllocator seems to be broken with JDK 16.

SEVERE: Buffer cannot be destroyed: java.nio.DirectFloatBufferU

Even by adding this JVM arg (which used to solve that on jdk 11+)

"--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"

you can test it with

3 Likes