So after launching a test program I'm working on, I stupidly selected JOGL in the properties dialog. Now when I start up the program it crashes with the following error:
java.lang.NoClassDefFoundError: javax/media/opengl/GL
at com.jme.system.jogl.JOGLSystemProvider.getDisplaySystem(JOGLSystemProvider.java:57)
I should have selected lwjgl b/c thats what I have installed.
So the dialog no longer comes up after starting the program. I am using a StandardGame. I've set the following on it.
The properties.cfg get created in the directory your application gets launched from. If you are running your app from eclipse, then you find it in the project directory.
Here is the code that I am using to start the game.
public class Game{
private StandardGame game;
public Game(){
game = new StandardGame("Test");
game.setConfigShowMode(AbstractGame.ConfigShowMode.AlwaysShow);
game.start();
}
public void quit(){
game.shutdown();
}
Here is the full exception
Dec 9, 2008 8:53:12 PM com.jmex.game.DefaultUncaughtExceptionHandler uncaughtException
SEVERE: Main game loop broken by uncaught exception
java.lang.NoClassDefFoundError: javax/media/opengl/GL
at com.jme.system.jogl.JOGLSystemProvider.getDisplaySystem(JOGLSystemProvider.java:57)
at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:283)
at com.jme.system.DisplaySystem.getDisplaySystem(DisplaySystem.java:184)
at com.jmex.game.StandardGame.initSystem(StandardGame.java:262)
at com.jmex.game.StandardGame.run(StandardGame.java:185)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GL
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)