Whenever I try to run the jME Physics tutorials, I get the following exception in Eclipse:
com.jme.system.JmeException: Cannot create window: Could not switch mode.
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.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:83)
at com.jme.app.BaseGame.start(Unknown Source)
at com.jmetest.physicstut.Lesson1.main(Lesson1.java:99)
I've got all the jME jars added to the project as well as the jars that jME requires to run (like the LWJGL and other libraries). Is there something else I need to include or is it some other problem?
Try to deactivate FullScreen mode, there seems to be a problem with access to your graphics card.
How would I do that? This is happening before the jME properties window pops up. Also, I don't have this problem with the jME tutorials, just the physics tutorials. So could it be something different about them?
Also, I realized that there are several exception messages (all related) so I'll include them here in case it helps:
Jan 11, 2008 2:20:47 PM com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay
SEVERE: Cannot create window
Jan 11, 2008 2:20:47 PM class com.jme.system.lwjgl.LWJGLDisplaySystem initDisplay()
SEVERE: Exception
org.lwjgl.LWJGLException: Could not switch mode.
at org.lwjgl.opengl.LinuxDisplay.nSwitchDisplayMode(Native Method)
at org.lwjgl.opengl.LinuxDisplay.switchDisplayModeOnTmpDisplay(LinuxDisplay.java:426)
at org.lwjgl.opengl.LinuxDisplay.switchDisplayMode(LinuxDisplay.java:416)
at org.lwjgl.opengl.Display.switchDisplayMode(Display.java:302)
at org.lwjgl.opengl.Display.create(Display.java:738)
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.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:83)
at com.jme.app.BaseGame.start(Unknown Source)
at com.jmetest.physicstut.Lesson1.main(Lesson1.java:99)
Jan 11, 2008 2:20:47 PM com.jme.app.BaseSimpleGame initSystem
SEVERE: Could not create displaySystem
com.jme.system.JmeException: Cannot create window: Could not switch mode.
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.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:83)
at com.jme.app.BaseGame.start(Unknown Source)
at com.jmetest.physicstut.Lesson1.main(Lesson1.java:99)