LWJGL will not work outside NetBeans

I'm having trouble trying to find out why my LWJGL3 application will not work outside of NetBeans. I copied all the natives into the same directory. since Jar and I get an error if I run directly from Jar:

[LWJGL] GLFW_API_UNAVAILABLE error Description : WGL: The driver does not appear to support OpenGL Stacktrace : org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1146) org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1227) com.alpha.core.Window.Init(Window.java:101) com.alpha.core.Game.GameLoop(Game.java:33) com.alpha.core.Game.Start(Game.java:23) com.alpha.tests.Main.main(Main.java:11) Exception in thread "main" java.lang.RuntimeException: Failed to create the GLFW window at com.alpha.core.Window.Init(Window.java:103) at com.alpha.core.Game.GameLoop(Game.java:33) at com.alpha.core.Game.Start(Game.java:23) at com.alpha.tests.Main.main(Main.java:11) 

The graphics driver is updated, the application works if I start from the IDE, all the DLLs are there, I do not know what could be the reason for this.

Any help would be appreciated, thanks in advance!

+7
java netbeans opengl lwjgl
source share
1 answer

There are two possibilities. The first is that your video card is out of date. In this case, you should update your driver with the software of your card manufacturer (for example, Nvidia, AMD, ...). This can only happen when starting on another machine. The second possibility is that your IDE-jre and external jre have different versions. In this case, you need to install the MOST version of jre from the outside, as you already have in NetBeans. DO NOT update. Use an older version if NetBeans is using an older version.

+4
source share

All Articles