Java version problems

NoSuchMethodError: 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

  1. 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.
  2. 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.
  3. If you are compiling a mod from source yourself, build it with OpenJDK 8 or configure Gradle to use the '--release 8' compiler flag.
LoadersFabric, Forge, Quilt, Server
SeverityStops the game
CategoryJava version problems

Check your own log

Related errors