Problems executing the HelloWorld example

When i run the Hello World example on eclipse,

the select display window is showed to me when I click on OK

I get the following error:



Nov 14, 2007 2:39:44 PM com.jme.app.BaseGame start

INFO: Application started.

Nov 14, 2007 2:39:44 PM com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

Nov 14, 2007 2:39:44 PM com.jme.system.PropertiesIO load

INFO: Read properties

Nov 14, 2007 2:40:46 PM com.jme.input.joystick.DummyJoystickInput <init>

INFO: Joystick support is disabled

Nov 14, 2007 2:40:46 PM com.jme.system.lwjgl.LWJGLDisplaySystem <init>

INFO: LWJGL Display System created.

Nov 14, 2007 2:40:46 PM com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode

INFO: Selected DisplayMode: 2960 x 1050 x 24 @75Hz

Nov 14, 2007 2:40:46 PM com.jme.system.PropertiesIO save

INFO: Saved properties

Nov 14, 2007 2:40:46 PM com.jme.app.BaseSimpleGame initSystem

INFO: jME version 1.0

Nov 14, 2007 2:40:46 PM com.jme.renderer.lwjgl.LWJGLRenderer <init>

INFO: LWJGLRenderer created. W:  2960H: 1050

Nov 14, 2007 2:40:47 PM com.jme.app.BaseSimpleGame initSystem

INFO: Running on: null

Driver version: null

Tungsten Graphics, Inc. - Mesa DRI R300 20060815 x86/MMX/SSE2 TCL - 1.3 Mesa 6.5.2

Nov 14, 2007 2:40:47 PM com.jme.renderer.AbstractCamera <init>

INFO: Camera created.

Nov 14, 2007 2:40:47 PM com.jme.util.lwjgl.LWJGLTimer <init>

INFO: Timer resolution: 1000 ticks per second

Nov 14, 2007 2:40:47 PM com.jme.scene.Node <init>

INFO: Node created.

Nov 14, 2007 2:40:47 PM class HelloWorld start()

SEVERE: Exception in game loop

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 HelloWorld.main(HelloWorld.java:15)


Nov 14, 2007 2:40:47 PM com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

Nov 14, 2007 2:40:47 PM com.jme.app.BaseGame start

INFO: Application ending.



well I stuck, don't know what to try to solve this problem

Is this what you are talking about? (From the wiki)


import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;
/**
 * Started Date: Jul 20, 2004<br><br>
 * Simple HelloWorld program for jME
 *
 * @author Jack Lindamood
 */
public class HelloWorld extends SimpleGame{
 public static void main(String[] args) {
  HelloWorld app = new HelloWorld(); // Create Object
  // Signal to show properties dialog
  app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
  app.start(); // Start the program
 }
 protected void simpleInitGame() {
  // Make a box
  Box b = new Box("Mybox", new Vector3f(0,0,0), new Vector3f(1,1,1));
  rootNode.attachChild(b); // Put it in the scene graph
 }
}



I just tested it and works fine... Try updating from CVS.

already tried that



I think the problem may be something in my environment, because on macOS the examples work OK



but in Linux i get that problem

I tried it in Linux!?!?!?  :?

yeah,

I'm evaluating the Engine



I'm installing it on MacOS, Linux and windows



MacOS and Windows the examples works ok, but on Linux I get the problem:



SEVERE: Exception in game loop

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 HelloWorld.main(HelloWorld.java:15)

From your output, I see the following lines:


Nov 14, 2007 2:40:47 PM com.jme.app.BaseSimpleGame initSystem
INFO: Running on: null
Driver version: null
Tungsten Graphics, Inc. - Mesa DRI R300 20060815 x86/MMX/SSE2 TCL - 1.3 Mesa 6.5.2



It seems that you don't have drivers installed for your graphics card! It is using MESA (software-renderer) so no wonder why it breaks. Try installing your video drivers, and run glxinfo and/or glxgears to see the output.

the weird part is that the example glxgears works OK

running glxheads, i got the following output in the terminal:



  Display:    0x805e008

  Window:      0x3c00002

  Context:    0x8065968

  GL_VERSION:  1.3 Mesa 6.5.2

  GL_VENDOR:  Tungsten Graphics, Inc.

  GL_RENDERER: Mesa DRI R300 20060815 x86/MMX/SSE2 TCL



but I don't know why JME/lwjgl can't find my driver…

Working fine does not mean with hardware acceleration!, MESA = sorftware renderer, and unless you get several hundred frames per second on glxgears and it seays DirectRendering enabled, then jME won't work (technically, LWjGL is the one that will not work)

thanks for the help,



I will try to install the drivers for my video card