user1250790
user1250790

Reputation: 1

cannot run JOCL samples downloaded from jocl.org. (OPENCL for java)

I have downloaded the sample file from jocl.org and compiled it without problems (c:\javac -cp c:\jocl.jar JOCLSample.java)

When I tried to run it (c:\java -cp c:\jocl.jar JOCLSample), some errors occurred:

C:\Users\Ruoyu>java -cp C:\j.jar JOCLSample
Error: Could not find or load main class JOCLSample

How do I correct this?

Upvotes: 0

Views: 233

Answers (1)

vocaro
vocaro

Reputation: 2779

If JOCLSample.class is in C:\Users\Ruoyu, change your -cp parameter to C:\j.jar;C:\Users\Ruoyu

Upvotes: 0

Related Questions