You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when starting the application I get this error:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
at org.lwjgl.system.MemoryAccess$MemoryAccessorUnsafe.getCapacityOffset(MemoryAccess.java:159)
at org.lwjgl.system.MemoryAccess$MemoryAccessorUnsafe.<clinit>(MemoryAccess.java:132)
at org.lwjgl.system.MemoryAccess.getInstance(MemoryAccess.java:31)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:62)
at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:60)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:81)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:70)
at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
at java.lang.ThreadLocal.get(ThreadLocal.java:170)
at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:603)
at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:612)
at org.lwjgl.system.Callback.<clinit>(Callback.java:38)
And this error:
[LWJGL] [MemoryAccessor] Unsupported JVM detected, this will likely result in low performance. Please inform LWJGL developers.
Would appreciate help on this!
The text was updated successfully, but these errors were encountered:
The 3.1.4 build on Maven is bugged, it has been compiled with Java 9. The bytecode version is fine (Java 8), but not the boot classpath. JDK 9 introduced covariant returns in certain NIO methods and that's the error you're seeing.
Workarounds:
use Java 9
download the latest 3.1.4-SNAPSHOT (it's identical to the 3.1.4 release but compiled properly)
download LWJGL from the website or github (the binaries have been updated)
There will be a 3.1.5 release immediately (hopefully tonight or tomorrow morning) that will fix the Maven build.
Hello!
I'm currently setting up a project with lwjgl3 and maven this is the relevant part of my pom (generated by the online tool on the website):
But when starting the application I get this error:
And this error:
[LWJGL] [MemoryAccessor] Unsupported JVM detected, this will likely result in low performance. Please inform LWJGL developers.
Would appreciate help on this!
The text was updated successfully, but these errors were encountered: