LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: simonhyttfors on May 12, 2013, 16:11:20

Title: Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLExcept
Post by: simonhyttfors on May 12, 2013, 16:11:20
I exported my game to a jar via Eclipse and I put the natives right in the jar, by the side of META-INF, my package and lwjgl.jar. I changed the Class-Path in MANIFEST.MF to lwjgl.jar but when I run it through a terminal it says
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
What am I doing wrong? How do you distribute your games? (I've read the wiki but I didn't think it said much more than what I've tried). Thank you all :)
/Simon
Title: Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLExcept
Post by: fiendfan1 on June 02, 2013, 00:42:54
I don't know if you used JarSplice, but it is really helpful, all automatic.
http://ninjacave.com/jarsplice (http://ninjacave.com/jarsplice)

Here's a video tutorial
http://www.youtube.com/watch?v=5stQZqOAM70&list=PL19F2453814E0E315&index=10 (http://www.youtube.com/watch?v=5stQZqOAM70&list=PL19F2453814E0E315&index=10)