Im new to java programming but i know most the basics of it. I wanted to start making a basic game so tried to use the Display() function (from LWJGL) to make a window appear. I then wrote a separate class called gameLoop with the functions gameLoop.start() to create the window, then update the display at 50fps and gameLoop.stop() to stop the loop and close the window. The problem is that a window never opens and i get the same error each time. :

Exception in thread "main" java.lang.NoSuchMethodError: getPointer
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1827)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1742)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at org.lwjgl.Sys$1.run(Sys.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
at org.lwjgl.Sys.loadLibrary(Sys.java:84)
at org.lwjgl.Sys.<clinit>(Sys.java:101)
at org.lwjgl.opengl.Display.<clinit>(Display.java:128 )
at org.newdawn.slick.AppGameContainer$1.run(AppGameCo ntainer.java:39)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.AppGameContainer.<clinit>(AppGam eContainer.java:36)
at org.newdawn.slick.tests.AlphaMapTest.main(AlphaMap Test.java:77)


This is the display class, in the future it will also stop the display using gameLoop.stop(), but at the moment i want the display to be on until i stop it using stop in eclipse.
Java Code:
public class Display {
	public static void main() {
		gameLoop.start();
	}

}
The gameLoop class.
Java Code:
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;


public class gameLoop {
	public static int i = 0;
	public static void start(){
		try {
		Display.setDisplayMode(new DisplayMode(800,600)); //creates the display
		Display.create();
		}catch(Exception e) {}
		
		int i = 0;
		while (i < 1) { //infinite loop intended, the function end sets i =1
			Display.update();
			try {
				Thread.sleep(20); //updates display at 50fps
			}catch(Exception e) {}
			continue;

		}
	}
	public static void end() {
		gameLoop.i = 1;
		Display.destroy();
	}
}
Any help would be greatly appreciated.