LWJGL Exporting Project to Runnable Jar. Uses Eclipse, but NetBeans and other IDEs should be the same because the Meta-INF is the same.
This video goes over how to prepare your project for runnable Jar creation. It then gives a demonstration on how to add more libraries to the project. Some people don't learn how to use Java libraries, and here is a video to do a specific thing.
There is no audio in the video as there is nothing to explain. It is bare simple to follow along with what I press and do if you are trying to replicate it. If you are not trying to replicate it then you can easily grasp the concept. I am open to questions, feel free to ask.
This uses LWJGL 2.9.3, but that is irrelevant information as this method will work with all forms of modern OpenGL (2.X.X/3.X.X, not sure about 1.X.X).
Official Link: http://wiki.lwjgl.org/wiki/Distributing_Your_LWJGL_Application
1. Create a project
2. Add dependencies
3. Add natives to the lwjgl.jar to enable building in eclipse
4. Make your kinky project
5. Add System.setProperty("org.lwjgl.librarypath", new File("natives/windows").getAbsolutePath()); as first line of program
6. Verify that natives path string points to the operating system that you are using I.E. natives/linux
7. Export your project as a Runnable jar, selecting generate in a folder for all the libraries
8. Optional: Update the generated folder name, update the Meta Inf
9. Check to make sure you have your natives wherever you directed the path using setProperty
10. Make sure your libraries are where you need them to be. Meta Inf automatically points to them
11. Run the Jar, enjoy!
Tags: LWJGL Exporting Project to Runnable Jar, Lightweight Java Game Library, Java (Programming Language), Programming Language (Software Genre), Exporting, LWJGL, OpenGL, opengl, OpenGL ES (API), OpenGL Utility Toolkit (Software), OpenGL (API), LWJGL2, LWJGL3, Java, System.setProperty(, OGL, JAR (File Format)