LWJGL Forum

Programming => General Java Game Development => Topic started by: deavik on August 02, 2008, 08:21:04

Title: [solved] Java beginner... how to set up?
Post by: deavik on August 02, 2008, 08:21:04
Hello,
Sorry for the noobish question (I AM new to java)...
Where do I actually put the files I downloaded for ljwgl so I can import them like the wiki says?
import org.lwjgl.opengl.Display;

I use Arch linux x86_64 and java (sun) and jdk 1.6 are installed at /opt/java. I am using Emacs and there are instructions for netbeans, eclipse etc. on the website.

Thanks.
Title: Re: Java beginner... how to set up?
Post by: Matzon on August 02, 2008, 08:44:43
consider reading the Java Tutorial before even considering using LWJGL:
http://java.sun.com/docs/books/tutorial/getStarted/index.html

http://java.sun.com/docs/books/tutorial/
Title: Re: Java beginner... how to set up?
Post by: deavik on August 02, 2008, 09:17:05
Thanks for the reply, I actually just figured it out... I put the so files in my /usr/lib directory and the jar file in my /opt/java/lib/.

I downloaded the 2.0rc1, and the example program here http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/basicopengl gives me runtime errors in the opengl.Display class. Should I use the 1.1.4 version?

Thanks again!

/EDIT: To be precise:
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
at Game.cleanup(Game.java:105)
at Game.main(Game.java:40)
and that line is "Display.destroy;"
Title: Re: Java beginner... how to set up?
Post by: deavik on August 02, 2008, 11:15:49
Had to add to classpath... sorry for being a dumbass and cluttering up the forums.
Title: Re: [solved] Java beginner... how to set up?
Post by: princec on August 02, 2008, 11:56:07
And give up on Emacs and start using Eclipse instead too while you're at it :) Your life will become much easier.

Cas :)
Title: Re: [solved] Java beginner... how to set up?
Post by: Matzon on August 02, 2008, 17:32:52
no! - please access the .so files by using -Djava.library.path=<path>/<to>/<native>/<libraries>