Hard crashes on errors aren’t very pretty so I suggest we add this: (error message can be anything you want). It’s a small change so I just posted the code up here.
Add the following to the AbstractGame class
private static final String LIBRARY_ERROR= "Error 101: Unable to find lwjgl library file in your java path.n" +
"Probably need to add -Djava.library.path=./library to javan" +
"command where ./library is the path to the lwjgl libraries.n";
Inside the function AbstractGame.getAttributes() change
LWJGLPropertiesDialog dialog = new LWJGLPropertiesDialog(properties, dialogImage);
to
LWJGLPropertiesDialog dialog = null;
try{
dialog = new LWJGLPropertiesDialog(properties, dialogImage);
} catch (UnsatisfiedLinkError e){
JOptionPane.showMessageDialog(null,LIBRARY_ERROR,"Error 101",JOptionPane.ERROR_MESSAGE);
System.exit(0);
}