Hello Guest

Install problem, windows, probley noob question

  • 10 Replies
  • 17420 Views
Install problem, windows, probley noob question
« on: November 22, 2006, 03:09:39 »
ok so i am pretty sure i have done what i am suppose to to do... here is my results


Code: [Select]
C:\PROGRA~1\Java\lwjgl>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\win32 org.lwjgl.test.WindowCreationTest
The following keys are available:
ESCAPE:         Exit test
ARROW Keys:     Move window when in non-fullscreen mode
L:              List selectable display modes
0-8:            Selection of display modes
F:              Toggle fullscreen
SHIFT-F:        Toggle fullscreen with Display.destroy()/create() cycle
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.libr
ary.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at org.lwjgl.Sys$1.run(Sys.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
        at org.lwjgl.Sys.loadLibrary(Sys.java:84)
        at org.lwjgl.Sys.<clinit>(Sys.java:101)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:108)
        at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:
80)
        at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:284)

C:\PROGRA~1\Java\lwjgl>


and there is not a lwjglaudio.dll file like there is stated on the installation page

*

Offline Matzon

  • *****
  • 2242
Install problem, windows, probley noob question
« Reply #1 on: November 22, 2006, 06:20:25 »
Quote
jar\jinput.jar;-Djava.libr

should be:
Quote
jar\jinput.jar; -Djava.libr


Quote
and there is not a lwjglaudio.dll file like there is stated on the installation page
right - thats actually the OpenAL32.dll now

Install problem, windows, probley noob question
« Reply #2 on: November 22, 2006, 22:42:21 »
woot. it worked, thanks. this is very interesting, i think its even making Java ...well... good for something.  =D

Hi
« Reply #3 on: January 08, 2007, 22:22:59 »
Hi,

No need to open a new thread because I have another question abou tthe installation.

I go to start, run, type cmd, go to the LWJGL in which I unziped the folders.
I type the , longest and uglies, command I ever saw (which, by the way, you can not copy/paste in dos).
And I got an exception message that says, and I quote :
" Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/test/WindowCreationTrest "

Best regards,
Fares.

*

Offline Matzon

  • *****
  • 2242
Re: Install problem, windows, probley noob question
« Reply #4 on: January 08, 2007, 23:29:11 »
you didn't type it in correctly :)
Usually you run lwjgl projects from and IDE so you dont have to type that long string! - it is hideous :D

fwiw, you can paste if you right click the command prompt

Re: Hi
« Reply #5 on: January 09, 2007, 09:17:51 »
I type the , longest and uglies, command I ever saw (which, by the way, you can not copy/paste in dos).
If you mean the windows command windows, then you can copy/paste the value. Unless it is not the longest and uglies. There were other that were much more horrible :D
For copying/paste you have to right click into the command window and select "mark" for copy mode and hit "enter" to copy it into the clipboard. Pasting goes the same way. Just right click the cmd window and select "paste". Thats it :)

Re: Install problem, windows, probley noob question
« Reply #6 on: January 09, 2007, 10:51:18 »
I typed it correctly I am sure. But in order to be 110% sure I did as you sugguested.
I went to the cmd, got to the LWJGL folder, and copy pasted the following :


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\win32 org.lwjgl.test.WindowCreationTest

I got the same Exception error.
Any ideas what may be the cause ?

*

Offline Matzon

  • *****
  • 2242
Re: Install problem, windows, probley noob question
« Reply #7 on: January 09, 2007, 16:11:38 »
Quote
>dir
 Volume in drive G is Work
 Volume Serial Number is A08E-61D7
 Directory of lwjgl-1.0-rc1
09-01-2007  17:09    <DIR>          .
09-01-2007  17:09    <DIR>          ..
09-01-2007  17:09    <DIR>          doc
09-01-2007  17:09    <DIR>          jar
09-01-2007  17:09    <DIR>          native
09-01-2007  17:09    <DIR>          res
               0 File(s)              0 bytes
               6 Dir(s)   3.980.746.752 bytes free
>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\win32 org.lwjgl.test.WindowCreationTest
The following keys are available:
ESCAPE:         Exit test
ARROW Keys:     Move window when in non-fullscreen mode
L:              List selectable display modes
0-8:            Selection of display modes
F:              Toggle fullscreen
SHIFT-F:        Toggle fullscreen with Display.destroy()/create() cycle
Found 246 display modes
Problem retrieving mode with 640x480x24@75
Problem retrieving mode with 800x600x24@75
Problem retrieving mode with 1024x768x24@75

Re: Install problem, windows, probley noob question
« Reply #8 on: January 09, 2007, 17:34:58 »
Quote
C:\LWJGL\lwjgl-1.0-rc1>dir
 Volume in drive C has no label.
 Volume Serial Number is F02E-8710

 Directory of C:\LWJGL\lwjgl-1.0-rc1

01/07/2007  10:09 PM    <DIR>          .
01/07/2007  10:09 PM    <DIR>          ..
01/07/2007  10:08 PM    <DIR>          doc
01/07/2007  10:09 PM    <DIR>          jar
01/07/2007  10:07 PM    <DIR>          native
01/07/2007  10:08 PM    <DIR>          res
               0 File(s)              0 bytes
               6 Dir(s)   7,950,626,816 bytes free

C:\LWJGL\lwjgl-1.0-rc1>java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjg
_util.jar;jar\lwjgl_fmod3.jar;jar\lwjgl_devil.jar;jar\jinput.jar; -Djava.librar
.path=native\win32 org.lwjgl.test.WindowCreationTest
The following keys are available:
ESCAPE:         Exit test
ARROW Keys:     Move window when in non-fullscreen mode
L:              List selectable display modes
0-8:            Selection of display modes
F:              Toggle fullscreen
SHIFT-F:        Toggle fullscreen with Display.destroy()/create() cycle
Found 138 display modes
Problem retrieving mode with 640x480x24@75
Problem retrieving mode with 800x600x24@75
Problem retrieving mode with 1024x768x24@75
org.lwjgl.LWJGLException: Could not find a valid pixel format
        at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
        at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.j
va:52)
        at org.lwjgl.opengl.WindowsDisplayPeerInfo.initDC(WindowsDisplayPeerInf
.java:54)
        at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:135

        at org.lwjgl.opengl.Display.createWindow(Display.java:261)
        at org.lwjgl.opengl.Display.create(Display.java:703)
        at org.lwjgl.opengl.Display.create(Display.java:657)
        at org.lwjgl.opengl.Display.create(Display.java:641)
        at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java
92)
        at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:284)

Is this what I must get ?

*

Offline Matzon

  • *****
  • 2242
Re: Install problem, windows, probley noob question
« Reply #9 on: January 09, 2007, 17:48:13 »
yes much better :)
but it appears that you dont have OpenGL drivers installed ?

What graphics card do you have ?

Re: Install problem, windows, probley noob question
« Reply #10 on: January 09, 2007, 19:02:45 »
Gforce 4400 mx I believe.