I'm sorry that this may seem like a basic question, but I need help on importing classes. I downloaded the Lightweight Java Gaming Library(LWJGL), but I don't know how to install it. When I try the test, it doesn't work.
I have a folder in which I extracted the basic LWJGL files. I now have a setup like this:
generic_folder/libs/lwjgl-2.8.3
I also have this test which I copy-pasted from the tutorial on the LWJGL wiki: It is located in the generic_folder. When I try and javac it, it says DisplayExample.java:1: package org.lwjgl does not exist.
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
public class DisplayExample {
public void start() {
try {
Display.setDisplayMode(new DisplayMode(800,600));
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
System.exit(0);
}
// init OpenGL here
while (!Display.isCloseRequested()) {
// render OpenGL here
Display.update();
}
Display.destroy();
}
public static void main(String[] argv) {
DisplayExample displayExample = new DisplayExample();
displayExample.start();
}
}
Do I have to place the files in a certain location or what? Please help. Thanks!
Edit: I am sorry. I'm new to Java. Please go a little slower. Also, LWJGL is a library, so I didn't place any files inside of it.