Hi,
I have a NVida graphic card and I would like to use it for serious computations. I downloaded a driver from NVida webside and installed JOCL bindings. I downloaded one of the demo programs and compiled it. The program however does not run because:
Error while loading native library “JOCL-linux-x86” with base name “JOCL”
Operating system name: Linux
Architecture : i386
Architecture bit size: 32
Stack trace from the attempt to load the library as a resource:
java.lang.NullPointerException: No resource found with name ‘/lib/libJOCL-linux-x86.so’
at org.jocl.LibUtils.loadLibraryResource(LibUtils.java:139)
at org.jocl.LibUtils.loadLibrary(LibUtils.java:83)
at org.jocl.CL.(CL.java:47)
at JOCLSample.main(JOCLSample.java:50)
Stack trace from the attempt to load the library as a file:
java.lang.UnsatisfiedLinkError: no JOCL-linux-x86 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.jocl.LibUtils.loadLibrary(LibUtils.java:93)
at org.jocl.CL.(CL.java:47)
at JOCLSample.main(JOCLSample.java:50)
Exception in thread “main” java.lang.UnsatisfiedLinkError: Could not load the native library
at org.jocl.LibUtils.loadLibrary(LibUtils.java:117)
at org.jocl.CL.(CL.java:47)
at JOCLSample.main(JOCLSample.java:50)
Trying to solve it I did the following:
- I am positive that “JOCL-0.1.4d.jar” file is properly added to classpath; /lib/libJOCL-linux-x86_64.so for sure is inside this jar
- I also extracted libJOCL-linux-x86_64.so form the jar and used a respective -Djava.library.path= command.
- The library is also on my LD_LIBRARY_PATH
- I also run ldconfig to index this library
bit the problem persists