Java version problemsNoSuchMethodError: java.nio.ByteBuffer.clear() on Java 8
What it looks like in the log
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
How to fix it
- Configure your Minecraft launcher installation or profile to run the game with a newer Java runtime (such as Java 11 or Java 16/17) instead of Java 8.
- If you installed a custom, unofficial, or self-built JAR of a rendering mod like Sodium, replace it with the official release from Modrinth or CurseForge.
- If you are compiling a mod from source yourself, build it with OpenJDK 8 or configure Gradle to use the '--release 8' compiler flag.
| Loaders | Fabric, Forge, Quilt, Server |
|---|
| Severity | Stops the game |
|---|
| Category | Java version problems |
|---|
Check your own log