Original Post
Hello everyone! I have a problem. I am making a game in Java using JOGL. I have made a FrameMaster class that includes static funktion for making a basic JFrame: public class FrameMaster { private static JFrame theFrame=null; private static GLCanvas canvas; public static void CreateBasicFrame(GLEventListener e,float w,float h) { theFrame=new JFrame("JavaProject"); theFrame.setSize((int)w,(int)h); theFrame.setBackground(new Color(1,0,1)); theFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); theFrame.setTitle("THIS PROGRAM WILL SOON CRASH!"); //It CRASHES HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! canvas=new GLCanvas(); if(e!=null) canvas.addGLEventListener(e); if(canvas!=null) theFrame.add(canvas); Animator anim=new Animator(canvas); anim.start(); theFrame.setVisible(true); } It works fine on my computer, but when I move it fails when i move it to another maschine! After 2 hours testing I have detected where the program crashes. it does not give any error, it just ignores all the code that comes after canvas=new GLCanvas(); I have tried to write like: canvas=new GLCanvas(new GLCapabilities()); But it does not help? What am I doing wrong?