Reputation: 1
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
Reputation: 2779
If JOCLSample.class
is in C:\Users\Ruoyu
, change your -cp
parameter to C:\j.jar;C:\Users\Ruoyu
Upvotes: 0