[Solved] Unable to run jME

Problem solved; my graphics driver needed updating. Thank you for the help.









Hi, I've wanted to do work with a Java 3D engine for some time and have recently tries to start work in jME.



I find that I am unable to get past the Display Selection window without the application going away.

None of the demos work for me and when installed jME on Eclipse (using the guide at http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_eclipse_to_build_jme) I received an error message when attempting to run various test programs.



The full Eclipse readout says:



Sep 13, 2008 11:42:37 AM com.jme.app.BaseGame start

INFO: Application started.

Sep 13, 2008 11:42:37 AM com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

Sep 13, 2008 11:42:37 AM com.jme.system.PropertiesIO load

INFO: Read properties



(With the creation of the display selection window)



Sep 13, 2008 11:44:05 AM com.jme.input.joystick.DummyJoystickInput <init>

INFO: Joystick support is disabled

Sep 13, 2008 11:44:05 AM com.jme.system.lwjgl.LWJGLDisplaySystem <init>

INFO: LWJGL Display System created.

Sep 13, 2008 11:44:05 AM com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode

INFO: Selected DisplayMode: 640 x 480 x 16 @60Hz

Sep 13, 2008 11:44:05 AM com.jme.system.PropertiesIO save

INFO: Saved properties

Sep 13, 2008 11:44:05 AM com.jme.app.BaseSimpleGame initSystem

INFO: jME version 1.0

Sep 13, 2008 11:44:05 AM com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode

INFO: Selected DisplayMode: 640 x 480 x 16 @60Hz

Sep 13, 2008 11:44:06 AM com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay

SEVERE: Cannot create window

Sep 13, 2008 11:44:06 AM class com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay()

SEVERE: Exception

org.lwjgl.LWJGLException: Could not find a valid pixel format

at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)

at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)

at org.lwjgl.opengl.WindowsDisplayPeerInfo.initDC(WindowsDisplayPeerInfo.java:54)

at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:150)

at org.lwjgl.opengl.Display.createWindow(Display.java:260)

at org.lwjgl.opengl.Display.create(Display.java:757)

at org.lwjgl.opengl.Display.create(Display.java:709)

at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(LWJGLDisplaySystem.java:439)

at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(LWJGLDisplaySystem.java:145)

at com.jme.app.BaseSimpleGame.initSystem(BaseSimpleGame.java:341)

at com.jme.app.BaseGame.start(BaseGame.java:65)

at jmetest.renderer.TestTeapot.main(TestTeapot.java:61)

Sep 13, 2008 11:44:06 AM com.jme.app.BaseSimpleGame initSystem

SEVERE: Could not create displaySystem

com.jme.system.JmeException: Cannot create window: Could not find a valid pixel format

at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(LWJGLDisplaySystem.java:457)

at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(LWJGLDisplaySystem.java:145)

at com.jme.app.BaseSimpleGame.initSystem(BaseSimpleGame.java:341)

at com.jme.app.BaseGame.start(BaseGame.java:65)

at jmetest.renderer.TestTeapot.main(TestTeapot.java:61)



(After attempting to press OK on the selection window)



I am actually a little surprised to see this because it is a diffrent error message from yesterday. Before I was given a message about a NullPointerException;



However, both these errors were from the same place: The tests always run fine until they try to call the inherited start() method.



I have Java 1.6 on my computer and am using the JDK 1.6 update 10. I am running this on a dell Vostro 1500 with a intel core 2 duo and Vista.



Thank you for any insight you might have is solving my problem.

Have you tried updating your graphics driver? What graphics card do you have?

Yes, that was was exactly my problem.

I didn't even realize that my driver needed to be updated.

Thank you so much, I can't wait to get started.