"The import org.lwjgl.Display cannot be resol

Hi there!

As suggested by Middy I have downloaded Eclipse.

This code example, that demonstrates how to sett up an OpenGL Window, produces the below listed errors. As described in the above linked thread I have installed the LWJGL files as told to on the official site.

java -cp lwjgl.jar;lwjgl_test.jar;lwjgl_util.jar; org.lwjgl.test.WindowCreationTest
and
java -cp lwjgl.jar;lwjgl_media.jar;lwjgl_test.jar;lwjgl_util.jar; org.lwjgl.examples.spaceinvaders.Game
both work. (1st creates an empty window | 2nd. starts a space invaders game).

Eclipse finds the following problems:


  Description                                            Resource           In Folder          Location
* The import org.lwjgl.Display cannot be resolved        Lesson01.java      OpenGL Window      line 22
* The import org.lwjgl.DisplayMode cannot be resolved    Lesson01.java      OpenGL Window      line 23
* The import org.lwjgl.opengl.Window cannot be resolved  Lesson01.java      OpenGL Window      line 25
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 78
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 97
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 110
* Display cannot be resolved                             Lesson01.java      OpenGL Window      line 138
* DisplayMode[] cannot be resolved or is not a type      Lesson01.java      OpenGL Window      line 138
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 148
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 151
* Display cannot be resolved                             Lesson01.java      OpenGL Window      line 185
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 200

Lesson01 is some old code, based on something prior to 0.93.

You can find up-to-date demos and tutorials here.

[quote]You can find up-to-date demos and tutorials here.
[/quote]
Thank’s. I’ll give them a try.

if i remember correctly, in lwjgl 0.93 it is now called

import org.lwjgl.opengl.Display;

*note the addition of the .opengl bit

also note org.lwjgl.Window has been merged with Display so just replace where it says Window with Display.

[quote]Hi there!

As suggested by Middy I have downloaded Eclipse.

This code example, that demonstrates how to sett up an OpenGL Window, produces the below listed errors. As described in the above linked thread I have installed the LWJGL files as told to on the official site.

java -cp lwjgl.jar;lwjgl_test.jar;lwjgl_util.jar; org.lwjgl.test.WindowCreationTest
and
java -cp lwjgl.jar;lwjgl_media.jar;lwjgl_test.jar;lwjgl_util.jar; org.lwjgl.examples.spaceinvaders.Game
both work. (1st creates an empty window | 2nd. starts a space invaders game).

Eclipse finds the following problems:


  Description                                            Resource           In Folder          Location
* The import org.lwjgl.Display cannot be resolved        Lesson01.java      OpenGL Window      line 22
* The import org.lwjgl.DisplayMode cannot be resolved    Lesson01.java      OpenGL Window      line 23
* The import org.lwjgl.opengl.Window cannot be resolved  Lesson01.java      OpenGL Window      line 25
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 78
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 97
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 110
* Display cannot be resolved                             Lesson01.java      OpenGL Window      line 138
* DisplayMode[] cannot be resolved or is not a type      Lesson01.java      OpenGL Window      line 138
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 148
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 151
* Display cannot be resolved                             Lesson01.java      OpenGL Window      line 185
* Window cannot be resolved                              Lesson01.java      OpenGL Window      line 200

[/quote]
I have updated the NeHe lessons, but have not had a chance to put them up on the WiKi. Until I put them up, you can get them all at http://members.rogers.com/mark.bernard/