Posted by Xerxes Rånby on Sep 28, 2015; 10:38am URL: https://forum.jogamp.org/HelloJOCL-requesting-jogamp-natives-folder-tp4035399p4035400.html
"normally" you include gluegen-rt.jar and jocl.jar on the classpath
gluegen-rt will then look for its natives inside the jar gluegen-rt-natives-linux-amd64.jar next to the gluegen-rt.jar and jocl.jar will look for its natives inside jocl-natives-linux-amd64.jar next to the jocl.jar
if that fail then it will try load the natives from the natives/linux-amd64 inside the main jar
and if that also fail then it will try load the natives from the natives/linux-amd64/ folder on the filesystem.
example 1 if you have built gluegen jocl and jocl-demos manually then the following command line will launch HelloJOCL
java -cp jocl-demos/build/jar/jocl-demos.jar:gluegen/build/gluegen-rt.jar:jocl/build/jar/jocl.jar com/jogamp/opencl/demos/hellojocl/HelloJOCL