Hello everyone!
I'm trying to execute next lines:
Sys.initialize();
Sys.alert("Something Went Wrong", "Something went wrong and we don't know what to do!");
But, on initialization line i'm getting next exceptions
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at org.lwjgl.BufferUtils.createByteBuffer(BufferUtils.java:60)
at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:64)
at org.lwjgl.Sys.createImplementation(Sys.java:109)
at org.lwjgl.Sys.<clinit>(Sys.java:97)
at org.blue.shard.graphics.App.main(App.java:27)
Caused by: java.lang.NullPointerException
at java.nio.Bits.unaligned(Bits.java:592)
at java.nio.DirectByteBuffer.<clinit>(DirectByteBuffer.java:33)
... 6 more
Another problem of mine:
Trying to use example pf detecting Display modes. But it crashes on line
Display.getAvailableDisplayModes();
With no exception at all!!! Debug shows TargetInvocationException, but no console output.
What should i do? Did anyone seen something like this?
Sorry guys. :-[
It was my fault. I was replacing all system properties from file instead on just adding new.
Hello,
I think I have a similar problem.
Can you explain excactly what you've done to solve it ?
Erf, the problem came from elsewhere for me, it came from the resource loader i wrote. ::)
==> it's solved ;)