LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cloudyyard on December 08, 2015, 21:06:48

Title: HELP...
Post by: cloudyyard on December 08, 2015, 21:06:48
Hello everyone,
i have instaled the LWJGL, with this tutorial: http://wiki.lwjgl.org/wiki/Setting_Up_LWJGL_with_Eclipse
and i COPY/PASTE the Example of the SImple Display but, the eclipse not reconize this imports:
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;


help please.... ???
Title: Re: HELP...
Post by: bobjob on December 09, 2015, 02:05:59
The Display class is found in version 2 of LWJGL http://legacy.lwjgl.org/download.php (http://legacy.lwjgl.org/download.php)

try using this instead of version 3 if the tutorials require the Display class
Title: Re: HELP...
Post by: cloudyyard on December 09, 2015, 19:15:46
I'm using the latest version of LWJGL.
Title: Re: HELP...
Post by: Kai on December 09, 2015, 19:21:31
What bobjob meant was that this particular tutorial applies to LWJGL 2.x and 2.x _only_. It will not work with LWJGL 3. The versions 2.x and 3 of LWJGL are incompatible to each other.
That tutorial was written long ago and it should of course now be noted on those tutorials, that they do only apply to LWJGL 2.x, at least the ones hosted under the lwjgl.org domain.
In your case of using LWJGL 3, please have a look at the Getting Started guide on the lwjgl.org homepage: https://www.lwjgl.org/guide
Title: Re: HELP...
Post by: cloudyyard on December 09, 2015, 20:49:53
Thank you, now is working!!
is the version, i'm using an Example for the version 2 of LWJGL but i have the verison 3!...
Thanks for the HELP!!