What does that mean?
I’ve imported org.lwjgl.input.*;
Please post the full error message - this forum software puts a limit on the length of headings allowed.
[quote]Please post the full error message - this forum software puts a limit on the length of headings allowed.
[/quote]
Unhandled exception type LWJGLException That’s all Eclipse has to tell me.
I am using Java2 1.4.? (The latest version of this branch though) and have Java2 1.5.0 and 1.5_01 installed wich Eclipse happily ignores.
That code line is part of the BasicGame class of the shakebox.org Pong example game. googleing for that frase I found, that other examples use it the same way without throws-exeption of try-catch.
That means one of the methods is declaring that it may throw an LWJGLException, but you’re not handling it. The Java tutorial has a good description of exceptions and how to handle them:
http://java.sun.com/docs/books/tutorial/essential/exceptions/
Either you need to stop the method declaring the exception (not viable unless that throws clause is actually a bug), handle the exception in place, or propogate the exception back up the heirarchy and throw it straight out of the VM.
The correct fix is to add proper exception handling to the program. The quick-and-dirty fix is to declare all methods as “throws Exception”. ;D