LWJGL
June 20, 2013, 01:25:03
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.9.0 released!
Home
Help
Search
Login
Register
LWJGL
>
Archive
>
DevIL
>
Lesson06 noob problem
Pages: [
1
]
« previous
next »
Print
Author
Topic: Lesson06 noob problem (Read 7844 times)
ararie
Newbie
Posts: 11
Lesson06 noob problem
«
on:
March 01, 2007, 19: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
Administrator
Demigod
Posts: 2239
Re: Lesson06 noob problem
«
Reply #1 on:
March 01, 2007, 21: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
Prolific Timewaster
Posts: 335
LWJGL: WOW SO GOOD
Re: Lesson06 noob problem
«
Reply #2 on:
March 04, 2007, 10: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
Logged
LWJGL Benchmark online test:
http://have2chat.net/benchmark/
http://have2chat.net/benchmark/fullpage.html
(run full OpenGL webpage)
ararie
Newbie
Posts: 11
Re: Lesson06 noob problem
«
Reply #3 on:
March 07, 2007, 23: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
Administrator
Demigod
Posts: 2239
Re: Lesson06 noob problem
«
Reply #4 on:
March 08, 2007, 00:51:37 »
you need to download the optional package which includes devil and add that to the classpath
Logged
http://lwjgl.org
ararie
Newbie
Posts: 11
Re: Lesson06 noob problem
«
Reply #5 on:
March 08, 2007, 09: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
Administrator
Demigod
Posts: 2239
Re: Lesson06 noob problem
«
Reply #6 on:
March 08, 2007, 09: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
Newbie
Posts: 11
Re: Lesson06 noob problem
«
Reply #7 on:
March 08, 2007, 11: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
Administrator
Demigod
Posts: 2239
Re: Lesson06 noob problem
«
Reply #8 on:
March 08, 2007, 13: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
Newbie
Posts: 11
Re: Lesson06 noob problem
«
Reply #9 on:
March 08, 2007, 16:18:14 »
HALLELUJAH IT WORKS!!
i reinstalled everything lol.
thanks for your help, greatly appreciate it
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...