Reputation: 33
I am making a Minecraft mod in intellij with the recommended version of 1.12.2 forge. When i try to run the client, it crashes with an error.
The error I am getting is:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer
net.minecraft.client.Minecraft.readImageToBuffer(line:841)
Im using java 8, because with java 12 I get some errors.
This error is not because of a mod, im not coding yet, just testing that MC runs correctly
Upvotes: 1
Views: 814
Reputation: 48592
You compiled with Java 9 or newer despite trying to to run on Java 8. Clear all of your cache and build files, and make sure you use Java 8 to rebuild.
Upvotes: 1