LWJGL Forum

Programming => LWJGL Documentation => Topic started by: demon on November 26, 2005, 14:05:09

Title: LWJGL Problems?
Post by: demon on November 26, 2005, 14:05:09

.\org\lwjgl\input\JInputController.java:472: package Component does not exist
               if ((value == Component.POV.DOWN_LEFT) ||
                                      ^
.\org\lwjgl\input\JInputController.java:473: package Component does not exist
                   (value == Component.POV.DOWN_RIGHT) ||
                                      ^
.\org\lwjgl\input\JInputController.java:474: package Component does not exist
                   (value == Component.POV.DOWN)) {
                                      ^
.\org\lwjgl\input\JInputController.java:477: package Component does not exist
               if ((value == Component.POV.UP_LEFT) ||
                                      ^
.\org\lwjgl\input\JInputController.java:478: package Component does not exist
                   (value == Component.POV.UP_RIGHT) ||
                                      ^
.\org\lwjgl\input\JInputController.java:479: package Component does not exist
                   (value == Component.POV.UP)) {
                                      ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
48 errors
2 warnings


When I try to run that test window from the "Installation" page, it works fine. But when I downloaded Game.java (not the space invader one, the one in the Demo page). I get this when I type in "javac Game.java". I haven't had this problem before, any ideas?
Title: LWJGL Problems?
Post by: lightbringer on November 26, 2005, 15:09:14
All I can think of is, are you including jinput.jar in your classpath? That jar contains the necessary net.java.games.input.Component interface.
Title: LWJGL Problems?
Post by: demon on November 26, 2005, 15:23:28
You mean my Operating System class path? I'm trying to run all of this under windows xp.
Title: LWJGL Problems?
Post by: lightbringer on November 26, 2005, 15:46:32
I mean java classpath. Haven't used the commandline for these kinds of operations in a while, but you need to compile with
javac.exe -cp c:\path\to\jinput.jar;c:\path\to\lwjgl.jar;c:\path\to\whateverelse.jar yourclass.java

you get the idea.