I'm using Linux Mint 18 MATE and have the latest nvidia drivers.
This is the code:
package Debug;
import static org.lwjgl.glfw.GLFW.*;
public class Main {
public Main() {
initWindow();
}
private void initWindow() {
if (glfwInit() == false) {
System.err.println("GLFW failed to initialize!");
System.exit(-1);
}
long window = glfwCreateWindow(640, 480, "Debug", 0, 0);
glfwShowWindow(window);
}
public static void main(String[] args) {
new Main();
}
}