Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Archive
DevIL
Lesson06 noob problem
« previous
next »
Print
Pages: [
1
]
Lesson06 noob problem
9 Replies
22455 Views
ararie
11
Lesson06 noob problem
«
on:
March 02, 2007, 03:38:52 »
hi! i'm trying to run the Lesson06 from nehe.gamedev.org but it won't work!! i downloaded devil from the 0.94 version of lwjgl. it compiles fine (i use jCreator coz i don't know how to compile from the command line)
i used this command: java -cp .;res;jar\lwjgl.jar;jar\lwjgl_devil.jar; -Djava.library.path=native\win32 Lesson06
a window shows up for like a second and then disappears.
i don't know what to do anymore >_< what did i do wrong??
Logged
Matzon
2242
Re: Lesson06 noob problem
«
Reply #1 on:
March 02, 2007, 05:51:21 »
if there is no output, then it's probably exiting without actually telling what the error is. You should check the exceptions that are thrown.
Logged
http://lwjgl.org
bobjob
394
LWJGL: WOW SO GOOD
Re: Lesson06 noob problem
«
Reply #2 on:
March 04, 2007, 18:24:56 »
try run the command in a batch file (make sure u use java not javaw)
place pause after it, so u can read if there is any error comn throught the vm, ummmm.... u edit it urself or is it the original code, if its original, im blank
«
Last Edit: March 08, 2007, 11:43:44 by bobjob
»
Logged
ararie
11
Re: Lesson06 noob problem
«
Reply #3 on:
March 08, 2007, 07:44:55 »
so i threw exceptions and now a window showed for a second and then i got a
java.lang.NoClassDefFoundError: org/lwjgl/devil/IL ...
is it the installation?
Logged
Matzon
2242
Re: Lesson06 noob problem
«
Reply #4 on:
March 08, 2007, 08:51:37 »
you need to download the optional package which includes devil and add that to the classpath
Logged
http://lwjgl.org
ararie
11
Re: Lesson06 noob problem
«
Reply #5 on:
March 08, 2007, 17:05:26 »
i did.. i downloaded lwjgl-1.0 and then i downloaded the optional package and put the files in the jar folder where the rest are and then i used this command :
java -cp jar\lwjgl.jar;jar\lwjgl-devil.jar; -Djava.library.path=native\win32 Lesson06
Logged
Matzon
2242
Re: Lesson06 noob problem
«
Reply #6 on:
March 08, 2007, 17:18:25 »
since you're getting a NoClassDefFoundError: org/lwjgl/devil/IL - I'm pretty sure its becase the VM feels that a No Class Definition Found Error was a valid thing to throw
so, the devil classes aren't on your classpath, despite what you have typed on the command line.
Logged
http://lwjgl.org
ararie
11
Re: Lesson06 noob problem
«
Reply #7 on:
March 08, 2007, 19:05:45 »
hahah okay i got my stupid mistake.. it was lwjgl_devil not lwjgl-devil...
however now i'm back to where i was before... it showed a window with a black background for a second and then it disappears....
Logged
Matzon
2242
Re: Lesson06 noob problem
«
Reply #8 on:
March 08, 2007, 21:40:29 »
I just downloaded it, and fixed a simple error in it:
change:
IL.ilGenImages(1, image);
to
IL.ilGenImages(image);
execute with:
java -classpath .;jar\lwjgl.jar;jar\lwjgl_devil.jar -Djava.library.path=native\win32 Lesson06
works as expected
make sure that jars and natives are where expected.
(the bat file uses javaw, which will not show you any errors. Use java - not javaw instead)
Logged
http://lwjgl.org
ararie
11
Re: Lesson06 noob problem
«
Reply #9 on:
March 09, 2007, 00:18:14 »
HALLELUJAH IT WORKS!!
i reinstalled everything lol.
thanks for your help, greatly appreciate it
Logged
Print
Pages: [
1
]
« previous
next »