LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: angel-0ne on March 15, 2010, 13:56:30

Title: Unable to use lwjgl 2.3 ???
Post by: angel-0ne on March 15, 2010, 13:56:30
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?
Title: Re: Unable to use lwjgl 2.3 ???
Post by: angel-0ne on March 16, 2010, 10:08:35
Sorry guys.  :-[

It was my fault. I was replacing all system properties from file instead on just adding new.
Title: Re: Unable to use lwjgl 2.3 ???
Post by: MarneusCalgarXP on June 11, 2010, 20:05:31
Hello,

I think I have a similar problem.
Can you explain excactly what you've done to solve it ?
Title: Re: Unable to use lwjgl 2.3 ???
Post by: MarneusCalgarXP on June 15, 2010, 08:36:44
Erf, the problem came from elsewhere for me, it came from the resource loader i wrote. ::)
==> it's solved ;)