LWJGL
October 21, 2014, 20:10:06 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.1 released!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Failed to initialise the LWJGL display  (Read 15495 times)
Mindless
Newbie
*
Posts: 7


« on: April 22, 2009, 00:57:04 »

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

Code:
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)
Logged
Matzon
Administrator
Demigod
*****
Posts: 2242



« Reply #1 on: April 22, 2009, 01:09:23 »

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

Mindless
Newbie
*
Posts: 7


« Reply #2 on: April 22, 2009, 01:27:40 »

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 !!!!
Logged
Evil-Devil
Prolific Timewaster
****
Posts: 301



WWW
« Reply #3 on: April 22, 2009, 02:08:27 »

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?
Logged
Matzon
Administrator
Demigod
*****
Posts: 2242



« Reply #4 on: April 22, 2009, 04:24:39 »

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

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!