LWJGL Problems?

Started by demon, November 26, 2005, 14:05:09

Previous topic - Next topic

demon

.\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?

lightbringer

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.

demon

You mean my Operating System class path? I'm trying to run all of this under windows xp.

lightbringer

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.