LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cwei on December 12, 2004, 22:16:50

Title: IllegalState on linux
Post by: cwei on December 12, 2004, 22:16:50
Hello

I have tested the webstart demos and I've got this error on linux.


Exception in thread "main" java.lang.IllegalStateException: Mouse doesn't support native cursors
       at org.lwjgl.input.Mouse.setNativeCursor(Unknown Source)
       at org.lwjgl.input.Mouse.create(Unknown Source)
       at org.lwjgl.opengl.Display.initControls(Unknown Source)
       at org.lwjgl.opengl.Display.createWindow(Unknown Source)
       at org.lwjgl.opengl.Display.create(Unknown Source)
       at org.lwjgl.opengl.Display.create(Unknown Source)


Can anybody help?

bye
Carsten
Title: IllegalState on linux
Post by: princec on December 12, 2004, 23:01:56
Badly coded demos ;) They should trap and ignore that exception and provide a fallback cursor rendered in software.

Do you have any system specs for us?

Cas :)
Title: IllegalState on linux
Post by: cwei on December 13, 2004, 00:19:00
Quote from: "princec"Badly coded demos ;) They should trap and ignore that exception and provide a fallback cursor rendered in software.

Do you have any system specs for us?

Cas :)

debian woody
2.4.21 kernel
Nvidia Geforce 4MX
nvidia 5336, 6629 driver modules
XFree86 Version 4.1.0.1 / X Window System

Do you have a well coded demo ;-)
Because someone send me a patch for Jake2 with lwjgl binding and we would integrate it in our project.
http://sourceforge.net/projects/jake2

It seems that the lwjgl bindings are faster than the jogl and joal.
It is working on Win32 but not on linux.

Is my debian too old?

bye
Carsten
Title: IllegalState on linux
Post by: Matzon on December 13, 2004, 06:27:54
Well, you're probably running the HWCursorTest - and it's meant to test a cursor, so no reason for it to fall back on emulation.
I have comitted a change for the HWCursorTest so that it exits on initialization errors.
I won't be updating the webstart package before 0.94 due out Real Soon Now
Title: IllegalState on linux
Post by: cwei on December 13, 2004, 09:27:29
Hi princec and matzon,

I have tested the webstart demos  at work on a  debian SARGE and it works :-)
Is it possible that the mouse problem depends on the Xfree version. (4.1 is too old ?)

bye
Carsten
Title: IllegalState on linux
Post by: elias on December 13, 2004, 14:00:36
Yes, native cursor support depends on the X version. Only X >= 4.3 supports LWJGL native cursors, as far as I remember.

- elias