EDIT: So apparently I was doing everything right, but I had a different problem that made it look as if I was doing something wrong. Sorry about that. –me, newbie
This ought to be really simple, but I cannot for the life of me figure out how to compile anything with lwjgl and have it work. I can write something like
package gwison;
import org.lwjgl.Sys;
public class G
{
public static void main(String[] args)
{
System.out.println(Sys.getTime());
}
}
and I can easily compile a program with several classes in different packages, as long as I wrote all the classes myself. But I have no clue how to make G work. I think it has something to do with classpathes? Maybe? Help?
I really have been searching for hours, but the most basic tutorials assume you know how to do this!
Edit: oh and I’m sorry if I’ve violated stackoverflow conventions; I did try not to but this is my first action here.
You need to make sure the jars are in the classpath while compiling and running.
Place your lwjgl jars in the classpath during compilation
More info :
http://en.wikipedia.org/wiki/Classpath_%28Java%29