Hello Guest

[solved] Java beginner... how to set up?

  • 5 Replies
  • 12935 Views
[solved] Java beginner... how to set up?
« 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?
Code: [Select]
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.
« Last Edit: August 02, 2008, 11:16:26 by deavik »

*

Offline Matzon

  • *****
  • 2242
Re: Java beginner... how to set up?
« Reply #1 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/

Re: Java beginner... how to set up?
« Reply #2 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:
Code: [Select]
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;"
« Last Edit: August 02, 2008, 09:27:12 by deavik »

Re: Java beginner... how to set up?
« Reply #3 on: August 02, 2008, 11:15:49 »
Had to add to classpath... sorry for being a dumbass and cluttering up the forums.

*

Offline princec

  • *****
  • 1933
    • Puppygames
Re: [solved] Java beginner... how to set up?
« Reply #4 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 :)

*

Offline Matzon

  • *****
  • 2242
Re: [solved] Java beginner... how to set up?
« Reply #5 on: August 02, 2008, 17:32:52 »
no! - please access the .so files by using -Djava.library.path=<path>/<to>/<native>/<libraries>