LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Hellekin on March 25, 2007, 23:07:52

Title: Can not make jar file!
Post by: Hellekin on March 25, 2007, 23:07:52
I am doing some nice graphics programs, and they run ok when I run them trought Jcreator, but when I make a jar file I get the "couldn't find main class" error. I don't believe that the problem is when I create the jar file, because I'm pretty sure I have set it up correctly. Trying to fix this problem i found out that i can run the jar file when I delete the Display setup code (making my programs useless), and that just don't seem to make sense to me. Can anyone help me?
Title: Re: Can not make jar file!
Post by: Fool Running on March 26, 2007, 17:41:20
You might need to add a classpath to the location of the LWJGL .jars (this is assuming you're making an executable .jar file) inside of the .jar file.
Title: Re: Can not make jar file!
Post by: Hellekin on March 27, 2007, 00:18:04
Got it working xD. Thx man.