LWJGL Setup with Eclipse

I recently decided to try my hand at some game programming and decided to try and use the Light Weight Java Game Library (LWJGL)

It took me a little while to figure out how to get it set up in eclipse. Here is how.
Download lwjgl.zip from here

One you've created a new project in eclipse, add the .jar files like you normally would by right clicking on the project -> properties. Click on the Java Build Path tab and then Libraries. Add the jar files by clicking on the "Add Jars..." button.
The next step is what through me off. Make sure you click on the arrow next to lwjgl.jar and fill in the native library location to point you toward the native files that came with lwjgl (.so files in linux and .dll files for windows)

Hopefully this helps!

No comments:

Post a Comment