Lunix + NetBeans

Started by Mattbooth, February 17, 2005, 21:15:52

Previous topic - Next topic

Mattbooth

Hi guys

Anyone succuefully setup Lunix and Netbeans together to run LWJGL?

Cheers

BatKid

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.
Projects: 
   Env3D (http://env3d.org): Learn Java in 3D
   WhaleChat (http://whalechat.com): A 3D social programming experiment

Mattbooth

hi mate

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

Thanks for the help :)

Mattbooth

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

Matzon

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