Hi folks,
I am currently developing a physics simulation using Java/jogl/OpenGL. Development takes place on a MacOS X box, but the finished program is intended for use on Linux computers.
I have packaged everything into one signed .jar file, including my own code + jogl.jar + native libraries for OS X and Linux. All jogl stuff is located in the “lib/” subdirectory inside the .jar. When testing this using WebStart, everything runs fine at home, but when I open a remote X11 session on a Linux computer and do a “javaws -offline file:///home/alex/kreisel/kreisel.jnlp”, I get the error mesage “no jogl in java.library.path”.
In addition, when trying to start the program directly using “java -jar -Djava.library.path=lib Kreisel.jar” from the command line, it throws an exception:
net.java.games.jogl.GLException: Error making context current
at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:153)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.dispatchEventImpl(Window.java:1604)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I cannot figure out what is going wrong here. Has anyone of you encountered this before? Any help at all would be much appreciated, since this is part of a thesis for my engineering degree…
In the hope that one of you will take a look I have posted the complete jar + jnlp on my website:
http://www.lewins-welt.de/kreisel/Kreisel.jar
http://www.lewins-welt.de/kreisel/kreisel.jnlp
Thanks in advance for your help, and greetings from Germany,
Alexander