Login  Register

Re: Error when trying to run JOCL on my Laptop

Posted by Michael Bien on Aug 18, 2011; 12:41am
URL: https://forum.jogamp.org/Error-when-trying-to-run-JOCL-on-my-Laptop-tp3251278p3263400.html

  On 08/18/2011 12:48 AM, barno [via jogamp] wrote:
> I deleted the older version of JOCL from my hard drive and removed it from my
> build path. Then I downloaded
> https://github.com/downloads/mbien/jocl/jocl-0.9-bmanual-20110810-windows-amd64.zip
> and extracted all contents to a folder within my eclipse workspace. Finally
> I added the new gluegen-rt.jar and jocl.jar to my build path.
i see - thats a very common mistake.
JOCL requires native libraries for execution, those are located in the
foo-natives-*.jars and must be in the java.library.path which you can
set with -Djava.library.path="foo" as explained in the wiki.

there is now a more convenient way to use jocl, however you will have to
download the latest build:
https://github.com/downloads/mbien/jocl/jocl-0.9.1-bmanual-20110811-linux-win-mac-bundle.zip

just put all jocl and gluegen-rt jars into classpath and you should be
set. With all jars i mean jocl.jar, gluegen-rt.jar and the corresponding
*-natives-*.jars.

i will continue to tweak the bundeling and hope to simplify things with
time. (next step is to reduce jar count)

regards,
michael