How to run HelloJOCL in command line

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to run HelloJOCL in command line

jj93
Does anyone know how to run the HelloJOCL example from the command line.

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)


Reply | Threaded
Open this post in threaded view
|

Re: How to run HelloJOCL in command line

jj93
Is everyone compiling using an IDE?

I am just confused about how to compile with these libraries from the terminal shell.