Newbie question regarding getting Display Information

Started by abenstex, September 15, 2005, 16:07:18

Previous topic - Next topic


Hi everyone,

i am completely new to lwjgl and just wanted to experiment a little, but somehow i can't seem to make it work: I have the following code:
System.out.println("Info about current:");
    System.out.println("Graphics card: " + Display.getAdapter() + ", version: " + Display.getVersion());
    System.out.println("Resolution: " + 
        Display.getDisplayMode().getWidth()      + "x" + 
        Display.getDisplayMode().getHeight()     + "x" + 
        Display.getDisplayMode().getBitsPerPixel()      + "@" + 
        Display.getDisplayMode().getFrequency()  + "Hz");
, but the only thing it prints is "Info about current:". That's all! I can't get any Display-method to work. Really need help here!


After running tests like
java -cp ..\lwjgl.jar;..\lwjgl_test.jar;..\lwjgl_util.jar;..\lwjgl_fmod3.jar;..\lwjgl_devil.jar;..\j
input.jar; -Djava.library.path=native org.lwjgl.test.DisplayTest

i came across always this exception:
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path


err - where are you standing in relation to the extracted archive?
usually, when you are in the root folder, you have several folders of which the two important ones are jar and native.
then you just execute
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 org.lwjgl.test.WindowCreationTest