[Solved] Properties file

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.

game.setConfigShowMode(AbstractGame.ConfigShowMode.AlwaysShow);


before calling "start()".

I can't locate the properties.cfg file to delete it.

What should I do?

Thanks

Solution

The user Preferences should be in: $HOME/.java/.userPrefs

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.

There is no properties file in the root directory.



This is what the run script looks like


#!/bin/bash

jme=/opt/jmonkeyengine
lwjgl=/opt/lwjgl-2.0rc1

CP=.
CP=$CP:$lwjgl/jar/lwjgl.jar
CP=$CP:$lwjgl/jar/lwjgl_util.jar
CP=$CP:$lwjgl/lwjgl_util_applet.jar
CP=$CP:$jme/target/jme.jar
CP=$CP:$jme/target/jme-awt.jar
CP=$CP:$jme/target/jme-audio.jar
CP=$CP:$jme/target/jme-effects.jar
CP=$CP:$jme/target/jme-model.jar
CP=$CP:$jme/target/jme-terrain.jar
CP=$CP:$jme/target/jme-scene.jar
CP=$CP:$jme/target/jme-font.jar
CP=$CP:$jme/target/jme-gamestates.jar
CP=$CP:$jme/target/jmetest.jar
CP=$CP:build_client

java -cp $CP Game



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)

StandardGame saves its configuration in windows in the registrty.



In Linux i guess its some file somewhere in your ~ home directory?

Its in GNU/Linux.



Do you know what the file name is supposed to be?  I don't see it in my home dir even when I do an

ls -a

actually it uses java's Preferences System

The user Preferences should be in: $HOME/.java/.userPrefs

see: http://www.dpunkt.de/java/Programmieren_mit_Java/Die_Umgebung_eines_Java_Programms/13.html#id343

Core-Dump … you rock!!!