How do I run compiled java classes with GPU libraries (Jogamp JOCL)?
- by jam383
Does anyone know how to run the java code from the command line with dependency on GPU libraries in this case Jogamps JOCL.
I have compiled a test program HelloJOCL.java but I get an error during run time.
I tried
javac -classpath "./lib/jocl.jar:./lib/jocl-natives-macosx-universal.jar:./lib/jocl-natives-linux-i586.jar:./lib/jocl-natives-linux-amd64.jar:./lib/gluegen-rt.jar:./lib/gluegen-rt-natives-linux-amd64.jar:./lib/gluegen-rt-natives-macosx-universal.jar:./lib/gluegen-rt-natives-linux-i586.jar" ./HelloJOCL.java
java -classpath "./lib/jocl.jar:./lib/jocl-natives-macosx-universal.jar:./lib/jocl-natives-linux-i586.jar:./lib/jocl-natives-linux-amd64.jar:./lib/gluegen-rt.jar:./lib/gluegen-rt-natives-linux-amd64.jar:./lib/gluegen-rt-natives-macosx-universal.jar:./lib/gluegen-rt-natives-linux-i586.jar:."
HelloJOCL
but get this error
Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/opencl/CLContext
at java.lang.Class.getDeclaredMethods0(Native Method)