Failed to initialise the LWJGL display

Started by Mindless, April 22, 2009, 07:57:04

Previous topic - Next topic

Mindless

Hello,

I wanted to make a project with Slick

http://slick.cokeandcode.com/
Quote"Slick2D is a simple set of tools wrapped around the LWJGL OpenGL binding for Java"

But my problem is concerning LWJGL.

I was at school and wanted to make slick working on my computer for a project. I did this tuto to configure slick with eclipse http://www.cs.bsu.edu/homepages/pvg/misc/slick_eclipse_tutorial.php and it works at home but not at school.

I work with Windows XP on Virtual PC 2007.

The webstart demo on slick website dont work.

Pulpcore demo ( applet ) work.

And I tried an opengl application with SFML in C++ and it works.

This is my error

Tue Apr 21 14:12:43 CEST 2009 INFO:Slick Build #257 
Tue Apr 21 14:12:43 CEST 2009 INFO:LWJGL Version: 2.0b1 
Tue Apr 21 14:12:43 CEST 2009 INFO:OriginalDisplayMode: 1280 x 1024 x 32 @75Hz 
Tue Apr 21 14:12:43 CEST 2009 INFO:TargetDisplayMode: 800 x 600 x 0 @0Hz 
Tue Apr 21 14:12:43 CEST 2009 ERROR:Could not find a valid pixel format 
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:158) 
   at org.lwjgl.opengl.Display.createWindow(Display.java:299) 
   at org.lwjgl.opengl.Display.create(Display.java:848) 
   at org.lwjgl.opengl.Display.create(Display.java:800) 
   at org.newdawn.slick.AppGameContainer.tryCreateDisplay(AppGameContainer.java:299) 
   at org.newdawn.slick.AppGameContainer.access$000(AppGameContainer.java:34) 
   at org.newdawn.slick.AppGameContainer$2.run(AppGameContainer.java:364) 
   at java.security.AccessController.doPrivileged(Native Method) 
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:345) 
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314) 
   at gameObject.pkg.SimpleTest.main(SimpleTest.java:75) 
org.newdawn.slick.SlickException: Failed to initialise the LWJGL display 
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:375) 
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314) 
   at gameObject.pkg.SimpleTest.main(SimpleTest.java:75)


Matzon

add -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true to the command line.
The problem is missing hardware opengl (drivers)

Mindless

Quote from: Matzon on April 22, 2009, 08:09:23
add -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true to the command line.
The problem is missing hardware opengl (drivers)

Wow, I hope it could work ! But before, how do I do this ?

EDIT: I did it. "Run / Debug settings", "Arguments", "VM arguments" and add the line below.

Thanks a lot !!!!

Evil-Devil

Quote from: Matzon on April 22, 2009, 08:09:23
add -Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true to the command line.
The problem is missing hardware opengl (drivers)
Is there any way to query that behavior and force/let the user select software mode?

Matzon

not really, you could probably just add it and then query the renderer and if its sofware ,then warn the user ?