NeHe Tutorials

This is actually a clubie post, but pertains to LWJGL. I pulled down the NeHe’s and edited the bat for LWJGL location and having all sorts of problems. Anyone done these with LWJGL release 9? The first error that comes to mind (at work right now) is NoDefClassError at Core (or something like that)

Thanks

sound like you misplaced your dll or something… A stacktrace would be nice thought

actually it sounds as if he’s using old Nehe’s with new code. There is no such thing as Core anymore. Thus you shouldn’t even be able to compile it!

you need to update the code to 0.9 first. When that compiles, it ought to work.

I got them to work by combining the code from this file, which is the lwjgl/java code of nehe’s first 13 lessons or something:
http://members.rogers.com/mark.bernard/
with the nice game loop from this thread:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=cluebies;action=display;num=1082112442

If you’d like I could post the code for lessons 2-5, just shout

That would be great, and I am already using the game loop fro mthe clubie thread, it rocks that princec tossed that out there for those of use doing 2d (or nothing) who want to take a look at LWGJL.
Thanks

http://www.m4g3.nl/showsrc/showsrc.php?src=src/Lesson02.java
http://www.m4g3.nl/showsrc/showsrc.php?src=src/Lesson03.java
http://www.m4g3.nl/showsrc/showsrc.php?src=src/Lesson04.java
http://www.m4g3.nl/showsrc/showsrc.php?src=src/Lesson05.java

I also had the texture loader working at some point (which is lesson06) and if you really can’t get that to work I can reconstruct that too. This should be enough to get you going though.

I’m using these files along with Jcreator and for me it works like a charm, I can compile and execute my files from within the IDE, which is very nice.

P.S Sorry for the messy coding, especially on the GL initialization stuff, all the files work though

Thanks!!! I use JCreator as well!

thanks again!

[quote]I got them to work by combining the code from this file, which is the lwjgl/java code of nehe’s first 13 lessons or something:
http://members.rogers.com/mark.bernard/
[/quote]
I have updated all 12 lessons to version 0.9

that’s good news! thanks a lot :slight_smile: I think a lot of newbies cluebies around here like me will be very happy with this :slight_smile: perhaps it’s even worth stickying because almost everyone new to lwjgl can learn a great deal from nehe’s tutorials with your code

just cut and paste code out of lesson 6 to my code, switched back to statics and voila! I have textures on a rotating cube…luvn it!! Thanks a ton…I really may have to consider taking GT6 3d!! ;D