LWJGLException could not be resolved.

Started by maxcontrol, February 21, 2016, 15:59:08

Previous topic - Next topic

maxcontrol

I cannot figure out why this is happening. I have imported the native library, source, and the JAR in Eclipse. I have my import for it at the top of the file.


My import.

import org.lwjgl.LWJGLException;

Can anybody help me out with this?

Kai

You are likely trying to build code that was written against an older (probably 2.x) version of LWJGL, while the LWJGL version you downloaded from https://www.lwjgl.org/download is version 3.0.0 ('b' or '').
You can still get the old 2.x versions from: http://legacy.lwjgl.org/download.php
That should fix this problem.

maxcontrol

Was LWJGLExcepttion replaced or is my version an imcomplete implementation?

SHC

Your version is indeed not an incomplete one, and it is LWJGL 3, which is a complete rewrite from LWJGL 2. The exception LWJGLException existed in LWJGL 2, where it is thrown when the creation of display failed. In LWJGL 3, the entire Display API is replaced with GLFW bindings, so there is no need of that exception and is removed.