Display problem

When i run a program then now display show it thorws this exception-



G:jmeDemo>java -Djava.library.path=…/lib -cp …/lib/;…/target/;.; HelloWor

ld

Apr 14, 2008 5:50:36 AM com.jme.app.BaseGame start

INFO: Application started.

Apr 14, 2008 5:50:37 AM com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

Apr 14, 2008 5:50:37 AM com.jme.system.PropertiesIO load

INFO: Read properties

Apr 14, 2008 5:51:01 AM com.jme.system.PropertiesIO save

INFO: Saved properties

Apr 14, 2008 5:51:01 AM com.jme.app.BaseSimpleGame initSystem

INFO: jME version 1.0

Apr 14, 2008 5:51:01 AM com.jme.input.joystick.DummyJoystickInput <init>

INFO: Joystick support is disabled

Apr 14, 2008 5:51:01 AM com.jme.system.lwjgl.LWJGLDisplaySystem <init>

INFO: LWJGL Display System created.

Apr 14, 2008 5:51:02 AM com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay

SEVERE: Cannot create window

Apr 14, 2008 5:51:02 AM class com.jme.system.lwjgl.LWJGLDisplaySystem initDispla

y()

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.ja

va: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:742)

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

        at com.jme.system.lwjgl.LWJGLDisplaySystem.initDisplay(Unknown Source)

        at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(Unknown Source)

        at com.jme.app.BaseSimpleGame.initSystem(Unknown Source)

        at com.jme.app.BaseGame.start(Unknown Source)

        at HelloWorld.main(HelloWorld.java:9)

Apr 14, 2008 5:51:02 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(Unknown Source)

        at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(Unknown Source)

        at com.jme.app.BaseSimpleGame.initSystem(Unknown Source)

        at com.jme.app.BaseGame.start(Unknown Source)

        at HelloWorld.main(HelloWorld.java:9)



What is the problem plese tell me something.

Try updating your graphics drivers!

And/or update from CVS, looks like the applications are better able to detect valid display modes now… (in particular for full-screen apps).

This really shouldn't happen, the CVS jME version checks for supported display modes, so this means that some pixel requirements cannot be met (like 8 bit stencil buffer). Like the two posters above said, if you have a modern video card, downloading the latest drivers should fix it.

I too am getting this error with a RADEON X300se on my work PC.  I updated the drivers to the latest version today and I am still seeing the error.  The only thing I can think of that is different now versus the last time I ran the application on that PC (and it worked then) is that now I am specifying samples = 8; in the constructor of my BaseSimpleGame for antialiasing.  I will try turning that off and republishing.  I guess I will need to try setting samples and catching exceptions to allow aliasing again if an exception is thrown.