Exception when running JOCLSample

Hi,

JOCLSample compiles fine, good times :slight_smile:

But when I try and run JOCLSample, I get the following Exception:

Exception in thread „main“ java.lang.NoClassDefFoundError: org/jocl/NativePointerObject

I am trying to run in on a 64bit Ubuntu 12.10 installation with an ATI graphics card

Any Ideas?

Hello

It seems like you added the JOCL JAR file to the classpath for the compilation, but not when actually running the sample. Are you using an IDE or the command line? On the command line (assuming that the .java-File and the JAR file are in the same directory) you should compile it with

javac -cp “.:JOCL-0.1.9.jar” JOCLSample.java

and run it with

java -cp “.:JOCL-0.1.9.jar” JOCLSample

bye
Marco

Yeah that all works now.

I hadn’t quite got the classpath correct.

Thanks