I'm executing the (compiled) code:
package odin;
import org.lwjgl.*;
import com.jme.app.*;
import odin.cfg.*;
public class Odin extends SimpleGame
{
public Odin()
{
}
protected void simpleInitGame()
{
}
public static void main(String[] args)
{
System.out.println("Hello world!");
//does all Java environment printing (static initializer)
Object o = Config.class;
//LWJGL test
System.out.println("LWJGL version = " + Sys.getVersion());
//jME test
SimpleGame sg = new Odin();
sg.start();
System.out.println("Goodbye world!");
}
}
.... outputs:
Hello world!
Root directory is 'C:devodin'.
java.class.path = C:devodinbin
java.library.path = C:devlwjglnativewin32
Java VM is located at 'C:ProgrammeJavajre1.6.0'.
User home directory is 'C:Dokumente und Einstellungenkawu'.
JVM version is '1.6.0-beta-b59g'.
Java version is '1.6.0-beta'.
Your JVM has passed the version test. Needed is 1.5. You have version 1.6.0-beta
LWJGL version = 1.0beta3
28.09.2006 03:13:20 com.jme.app.BaseGame start
INFO: Application started.
28.09.2006 03:13:20 com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
28.09.2006 03:13:20 com.jme.system.PropertiesIO load
INFO: Read properties
28.09.2006 03:13:20 com.jme.input.joystick.DummyJoystickInput <init>
INFO: Joystick support is disabled
28.09.2006 03:13:20 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
28.09.2006 03:13:20 com.jme.renderer.lwjgl.LWJGLRenderer <init>
INFO: LWJGLRenderer created. W: 640H: 480
28.09.2006 03:13:20 com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
28.09.2006 03:13:20 com.jme.util.lwjgl.LWJGLTimer <init>
INFO: Timer resolution: 1000 ticks per second
28.09.2006 03:13:21 com.jme.scene.Node <init>
INFO: Node created.
java.lang.NullPointerException
at com.jme.scene.Text.getDefaultFontTextureState(Unknown Source)
at com.jme.scene.Text.createDefaultTextLabel(Unknown Source)
at com.jme.scene.Text.createDefaultTextLabel(Unknown Source)
at com.jme.app.BaseSimpleGame.initGame(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at odin.Odin.main(Odin.java:43)
28.09.2006 03:13:21 com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
28.09.2006 03:13:21 com.jme.app.BaseGame start
INFO: Application ending.
OK, the Hello world string is printed, the Config.class resolver (static initializer) prints some Java stuff (which can basically be omitted). Then, some
java.lang.NullPointerException
at com.jme.scene.Text.getDefaultFontTextureState(Unknown Source)
is thrown... and the app terminates.
Running this via the command prompt does NOT throw an exception and shows the window @~457 flickering fps.
Using Run... from Eclipse produces the above trace... Does anyone know what's wrong now?
TIA
Karsten
IMPORTANT: This is a followup to thread http://www.jmonkeyengine.com/jmeforum/index.php?topic=3929.0
-> all compiles well, the libs really seem to be at the right place, also in Eclipse -> (I'm pretty sure)