LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Mattbooth on February 17, 2005, 21:15:52

Title: Lunix + NetBeans
Post by: Mattbooth on February 17, 2005, 21:15:52
Hi guys

Anyone succuefully setup Lunix and Netbeans together to run LWJGL?

Cheers
Title: Lunix + NetBeans
Post by: BatKid on February 22, 2005, 20:44:50
Yes,  I have gotten netbeans and lwjgl run on linux.  I've used both netbeans 3.6 and 4.0.  

Here's the instruction for netbeans 4.0

# Create a new Java project.
# Right click on the project.
# Under "Build -> Compiling Sources", click on the "Add JAR/Folder" button.
# Add "lwjgl.jar" (and all the other jars that you'd like).
# After adding the jar files. Select "Run->Running Project" from the right hand panel.
#Under "Working Directory", put in the directory for lwjgl.
# Under "VM options", type "-Djava.library.path=<lwjgl directory>".
# Click on "OK" to exit the panel.

Hope this helps.
Title: Lunix + NetBeans
Post by: Mattbooth on February 23, 2005, 11:11:59
hi mate

i was using the 3.6 but i assume its the same?

Thanks for the help :)
Title: Lunix + NetBeans
Post by: Mattbooth on March 14, 2005, 13:34:11
Well i've tried this and get the error message...

Quote
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:834)
       at org.lwjgl.Sys.<clinit>(Sys.java:69)
       at org.lwjgl.opengl.Display.<clinit>(Display.java:92)


Any help appreciated
Title: Lunix + NetBeans
Post by: Matzon on March 14, 2005, 16:36:25
you need to tell append a VM argument when you launch lwjgl, that tells where the library files are placed. Typically using the -Djava.library.path syntax