Hello Guest

LWJGL Problems?

  • 3 Replies
  • 7288 Views
LWJGL Problems?
« on: November 26, 2005, 14:05:09 »
Code: [Select]

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

*

Offline lightbringer

  • **
  • 50
  • Lone Wolf
LWJGL Problems?
« Reply #1 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.

LWJGL Problems?
« Reply #2 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.

*

Offline lightbringer

  • **
  • 50
  • Lone Wolf
LWJGL Problems?
« Reply #3 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.