[lwjgl] Screen Resolution

Hi, I have been working with a couple of friends to make a lwjgl to get to learn and teach them the basics of Libary. After setting it up, I sent to a friend who does not have the same monitor as me and it crashed as it wasn’t able to launch with the hard coded screen size. In retrospect, it makes was a quite silly mistake(code used before).

        
config.width = 1920;      
config.height = 1080;
config.fullscreen = true
 

So my question is, how do I go about detecting their resolution of start-up so they can launch then use their resolution to resize. I have tried Display.getWidth() and Display.getHeight respectively and getting “Exception in thread “main” java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path”.I have 64bit java installed and running a 64bit machine so I don’t understand why this is happening cause in the above example everything compiled fine. For the second part, I am assuming I would need to do it on a level by level basis by using the config file by bringing it into the program unless I’m missing a trick. A better way to put it would be I’m not sure where to get started on this problem.