When I use this code:
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
public
You need to update your video drivers.
Basically the display drivers for your P.C
i had a problem just like it and fixed it by downgrading to jdk 8 update 45.
i was using win 10 along with the integrated Intel HD 2000 for graphics .
Put this code System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true");
Problem solved in my case.. this will allow libgdx to run as software openGL mode.
Your code will look like this.
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
public class Main {
public static void main(String[] args) {
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true");
cfg.title = "MtxJungleGameMenu";
cfg.useGL20 = false;
cfg.width = 800;
cfg.height = 480;
new LwjglApplication(new MainStarter(), cfg);
}
}