Exception in thread “main” java.lang.NoSuchMethodError: org.lwjgl.opengl.Window.
create(Ljava/lang/String;IIII)V
at org.lwjgl.test.opengl.VBOTest.(Unknown Source)
rogue dll somewhere… run it as specified in tests.txt
Well the thing is it runs as specified in the test, compiles just fine on my machine, and yet throws that exception when I try to run it as I used to do with 0.8 and previous versions…
Any hint?
nvm it works
Lemmie put a demo together
We got a couple jME demos that uses LWJGL and PBuffer. Check:
http://www.mojomonkeycoding.com/jmedemo.html
they are the last two demos.
Bug in Mouse.java, the absolute y value is clamped to the width of the window instead of the height.
[quote]Bug in Mouse.java, the absolute y value is clamped to the width of the window instead of the height.
[/quote]
doh! - fixed in cvs, thanks for reporting!
[quote]nvm it works
[/quote]
So, what was wrong? (if others are in the same situation…)
Just tried the sourceforge download version, and I’m still unable to run the PbufferTest.
C:\blah>java org.lwjgl.test.opengl
.PbufferTest
Change between fullscreen and windowed mode, by pressing F and W respectively
Move quad using arrowkeys, and change rotation using +/-
Pbuffer support detected
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x695
EDC42
Function=[Unknown.]
Library=C:\WINDOWS\System32\nvoglnt.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at org.lwjgl.opengl.Pbuffer.nCreate(Native Method)
at org.lwjgl.opengl.Pbuffer.<init>(Pbuffer.java:190)
at org.lwjgl.test.opengl.PbufferTest.initPbuffer(PbufferTest.java:236)
at org.lwjgl.test.opengl.PbufferTest.initialize(PbufferTest.java:110)
at org.lwjgl.test.opengl.PbufferTest.execute(PbufferTest.java:85)
at org.lwjgl.test.opengl.PbufferTest.main(PbufferTest.java:412)
Dynamic libraries:
0x00400000 - 0x00406000 C:\j2sdk1.4.2_01\bin\java.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x7807E000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08136000 C:\j2sdk1.4.2_01\jre\bin\client\jvm.dll
0x77D40000 - 0x77DCC000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000 C:\j2sdk1.4.2_01\jre\bin\hpi.dll
0x00390000 - 0x0039E000 C:\j2sdk1.4.2_01\jre\bin\verify.dll
0x003A0000 - 0x003B8000 C:\j2sdk1.4.2_01\jre\bin\java.dll
0x003C0000 - 0x003CD000 C:\j2sdk1.4.2_01\jre\bin\zip.dll
0x02C60000 - 0x02CC0000 C:\j2sdk1.4.2_01\jre\lib\ext\lwjgl.dll
0x72280000 - 0x722A8000 C:\WINDOWS\System32\DINPUT.dll
0x5ED00000 - 0x5EDC6000 C:\WINDOWS\System32\OPENGL32.dll
0x68B20000 - 0x68B3E000 C:\WINDOWS\System32\GLU32.dll
0x51000000 - 0x51047000 C:\WINDOWS\System32\DDRAW.dll
0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll
0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll
0x02D70000 - 0x02D84000 C:\freeserve\freeserveconnectionkit\Freehook.dll
0x69500000 - 0x69816000 C:\WINDOWS\System32\nvoglnt.dll
0x688F0000 - 0x688F9000 C:\WINDOWS\System32\HID.DLL
0x76670000 - 0x76757000 C:\WINDOWS\System32\SETUPAPI.DLL
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 451K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 88% used [0x10010000, 0x10080e98, 0x10090000)
from space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 1408K, used 0K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 0% used [0x104f0000, 0x104f0000, 0x104f0200, 0x10650000)
compacting perm gen total 4096K, used 1373K [0x14010000, 0x14410000, 0x1801000
0)
the space 4096K, 33% used [0x14010000, 0x14167610, 0x14167800, 0x14410000)
Local Time = Fri Mar 05 14:24:21 2004
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)
#
# An error report file has been saved as hs_err_pid1916.log.
# Please refer to the file for further information.
#
What version of Nvidia’s drivers are you using? (Tip: there are Sys functions to get this for you)
0x02D70000 - 0x02D84000 C:\freeserve\freeserveconnectionkit\Freehook.dll
Muahhahahahaa! I bet your computer is screwed in all sorts of amusing ways
Cas
[quote]What version of Nvidia’s drivers are you using? (Tip: there are Sys functions to get this for you)
0x02D70000 - 0x02D84000 C:\freeserve\freeserveconnectionkit\Freehook.dll
Muahhahahahaa! I bet your computer is screwed in all sorts of amusing ways
Cas
[/quote]
Hehe, bloody freeserve :
Don’t know about any sys function to get the driver details, but if you think they’ll be of more use let us know. I got these details from the Display Properties/setting/Advanced menus:
GeForce4 Ti 4400
BIOS Version : 4.25.00.26
The Version # is 6.13.10.28.32
I think I’ve got some detonator drivers somewhere, I’ll see if I can dig them out and give them a try.
Btw, should I be worried about that freeserve .dll? ;D
Yay, got some new drivers and now all is fine
Although, when I try to run Grass, I now get this:
C:\blah >java org.lwjgl.test.opengl.Grass
Display mode: 640 x 480 x 16 @75Hz
Created display.
Created OpenGL.
Vertex program supported: true
java.io.IOException: Stream closed
at java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
at org.lwjgl.test.opengl.Grass.loadFile(Unknown Source)
at org.lwjgl.test.opengl.Grass.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at org.lwjgl.test.opengl.Grass.main(Unknown Source)
Looks like you couldn’t load the file “cg_grass2.vp”, make sure that is in the same directory as the Grass.class. If you compiling with an IDE like JBuilder, you may have to manually copy this file to the correct directory because it will leave files it doesn’t recognize as being “resources” behind (such as .vp files.)
As far as I know I’m running the Grass test from the lwjgl_test.jar and “cg_grass2.vp” is in the same directory as Grass.
There’s a good chance I’m doing something stupid though
Just to clear things up, I’ve placed all the jar and .dll files in my ext folder and then I’m just typing : java org.lwjgl.test.opengl.Grass, into the command prompt.
you need to make sure the source folder (containing the cg stuff) is in the classpath - so add a -cp src/java and it will work
Oh, from a jar… hehe, sorry, dev mode on the brain.