Hello Guest

Newbie question regarding getting Display Information

  • 2 Replies
  • 5542 Views
Newbie question regarding getting Display Information
« on: September 15, 2005, 16:07:18 »
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:
Code: [Select]
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!

Newbie question regarding getting Display Information
« Reply #1 on: September 15, 2005, 16:24:08 »
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

*

Offline Matzon

  • *****
  • 2242
Newbie question regarding getting Display Information
« Reply #2 on: September 15, 2005, 17:55:41 »
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
Code: [Select]
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