So I'm updating my project so that it uses the new LWJGL3 rather than 2.9.x.
I think I have most of the code that replaces "Display" set up right from following this
http://www.lwjgl.org/guide and looking on the GLFW site, but when I try and run my code I get the following.
Exception in thread "Test" java.lang.UnsatisfiedLinkError: org.lwjgl.system.glfw.ErrorCallback$Util.setCallback(Ljava/lang/reflect/Method;)J
at org.lwjgl.system.glfw.ErrorCallback$Util.setCallback(Native Method)
at org.lwjgl.system.glfw.ErrorCallback$Util.<clinit>(ErrorCallback.java:61)
at GameEngine.Render.GameDisplay.createNewDisplay(GameDisplay.java:20)
at GameEngine.Render.Render.init(Render.java:56)
at GameEngine.Render.Render.<init>(Render.java:52)
at GameEngine.Render.DefaultRender.<init>(DefaultRender.java:26)
at GameEngine.GameEngine$Engine.initEngine(GameEngine.java:70)
at GameEngine.GameEngine$Engine.run(GameEngine.java:59)
at java.lang.Thread.run(Unknown Source)
The line that causes it is the following
GLFW.glfwSetErrorCallback(ErrorCallback.Util.getDefault());
Which is pretty much the first method called in the method, before that the only thing there is, is an initialized long variable, "window".
So what is the cause for the error?
Extra Info:
GameDisplay is a class containing static methods that are to do with window creation, atm there is a method "createNewDisplay" and "changeResolution".
Render is an abstract class that DefaultRender extends and then fully implements some of the methods.