I have integrated JOCL into my medical imaging library -- works really great. The library is designed to be called from Matlab, and I get OpenCL errors when I call it from Matlab -- "can not enumerate platforms" which I gather means OpenCL is not found at all. All needed .jars are in the Matlab classpath. I realise Matlab doesn't support OpenCL but I was surprised that this would interfere with Java. Do you have any idea why the Matlab environment would disrupt calling JOCL and any suggestions for fixing it?
Thanks to you both. As you suggested I exported the library as a fat jar, and also had to include all the glue libraries in the Matlab static class path. I'm delighted to say it's running in Matlab R2015a now.