I am trying to use the lwjgl library and I am starting from scratch on a new installation of Windows 7.
I downloaded the latest JDK 6 from the Oracle site. After installation, I found that commands such as "java" or "javac" are not recognized from the Windows cmd command prompt. So, I edited the path variable and added the bin jdk folder to it.
Now java commands work.
So, I download the latest lwjgl, extract it and read the installation instructions on my website:
Download the distribution package Unpack the archive, the contents of the file (in folders) should include (among other things):
lwjgl.dll lwjglaudio.dll lwjgl.jar lwjgl_util.jar lwjgl_test.jar Verify
LWJGL by opening a command prompt and navigate to the folder in which the archive was extracted. After navigation, execute the following command: (all in one line, space before each) -
java -cp .; res; jar \ lwjgl.jar; jar \ lwjgl_test.jar; jar \ lwjgl_util.jar; jar \ lwjgl_fmod3.jar; jar \ lwjgl_devil.jar; jar \ jinput.jar; -Djava.library.path = native \ windows org.lwjgl.test.WindowCreationTest
A window should appear, and you should see the following output:
Display modes found 240, 320, Screen WindowCreationTest created Move to 100, 100 Window created 600, 800, game
So, I extracted it and went to the extracted folder on the command line.
Then I ran the above test command and received the following error:
C:\Users\\Downloads\LWJGL-2,6\LWJGL-2,6 > Java -cp.; res; jar\lwjgl.jar; jar\lwjgl_test.jar; jar\lwjgl_util.jar; jar\lwjgl_fmod3.jar; jar\lwjgl_devil.jar; jar\ji nput.jar; -Djava.library.path = \ org.lwjgl.test.WindowCreationTest
: ESCAPE: : L:
0-8:
F:
SHIFT-F:
Display.destroy()/create() "main" java.lang.UnsatisfiedLinkError: lwjgl java.libr ary.path java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) java.lang.Runtime.loadLibrary0 (Runtime.java:823) java.lang.System.loadLibrary(System.java:1028) at org.lwjgl.Sys $1.run(Sys.java:73) at java.security.AccessController.doPrivileged( ) org.lwjgl.Sys.doLoadLibrary(Sys.java:66) org.lwjgl.Sys.loadLibrary(Sys.java:82) at org.lwjgl.Sys. (Sys.java:99) at org.lwjgl.opengl.Display. (Display.java:130) at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java: 82) at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:286)
C:\Users\\Downloads\LWJGL-2,6\LWJGL-2,6 >
? , . , , DLL, :
C:\Users\\Downloads\LWJGL-2,6\LWJGL-2,6 > Java -cp.; res; jar\lwjgl.jar; jar\lwjgl_test.jar; jar\lwjgl_util.jar; jar\lwjgl_fmod3.jar; jar\lwjgl_devil.jar; jar\ji nput.jar; -Djava.library.path = \org.lwjgl.test.WindowCreationTest
, "native\windows" :
C:\Users\\Downloads\LWJGL-2,6\LWJGL-2,6\\Windows >
C .
2061-75F6
C:\Users\Nestor\Downloads\lwjgl-2.6\lwjgl-2.6\native\windows
11/24/2010 12:35 AM.
24.11.2010 12:35..
18.10.2010 20:44 31 322 jinput-dx8.dll
18.10.2010 20:44 65,024 jinput-dx8_64.dll
18.10.2010 20:44 29,696 jinput-raw.dll
18.10.2010 20:44 62,464 jinput-raw_64.dll
18.10.2010 20:44 197,120 lwjgl.dll
18.10.2010 20:44 305 664 lwjgl64.dll
18.10.2010 20:44 56,832 OpenAL32.dll
18.10.2010 20:44 157,184 OpenAL64.dll
8 905,216
2 155,163,058,176
- , ? - , LWJGL , ?