How do I run compiled java classes with GPU libraries (Jogamp JOCL)?

Posted by jam383 on Stack Overflow See other posts from Stack Overflow or by jam383
Published on 2012-06-27T03:14:08Z Indexed on 2012/06/27 3:15 UTC
Read the original article Hit count: 117

Filed under:
|
|
|

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)

© Stack Overflow or respective owner

Related posts about java

Related posts about terminal