Login  Register

JOGL 2.3 - eporting jogl project to executable jar file

Posted by miradnil on Aug 20, 2015; 6:39am
URL: https://forum.jogamp.org/JOGL-2-3-exporting-jogl-project-to-executable-jar-file-tp4035073p4035070.html

Hello, I am trying to export my jogl project to executable jar file (I believe you call it fat-jar). When I run the project in Eclipse everything works fine. When I export the project to jar file and run it - nothing happens. I have tried to run it from console and got some error messages about missing natives. I put all the missing dlls to jar location and it solved it but now I get a new error:

com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x61598cd5]], but: []
        at com.jogamp.opengl.GLProfile.get(GLProfile.java:990)
        at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:721)
        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:362)
        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:336)
        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:324)
        at main_pckg.Model3DGLPanel.<init>(Model3DGLPanel.java:96)
        at main_pckg.JRoboLabMainFrame.<init>(JRoboLabMainFrame.java:112)
        at main_pckg.JRoboLabMain$1.run(JRoboLabMain.java:29)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

I can't find a working solution for that.