Properly Exporting JOGL
Posted by TownEater on Nov 07, 2013; 3:25am
URL: https://forum.jogamp.org/Properly-Exporting-JOGL-tp4030517.html
Hi, I'm still rather new to using jogl and openGL in general, but I've gotten it to work and run a basic game demo inside eclipse. I can also get the game to export and run, but in order to do that, I have to put a folder named "lib" next to the runnable jar file, then create a .bat file to run the jar like this:
java -Djava.library.path=lib -jar MinimalEngineDemo.jar
I'm almost certain this is not the proper way to do this, and I'd like to be able to just contain everything(refferenced .jar files like gluegen-rt.jar, and .dll files like gluegen-rt.dll) in the runnable jar file. How exactly would I have to go about this? I've scoured forums and tutorials and documentation but they all say different things and none of them seem to work.