I am having that UnsatisfiedLinkerError. I have done literally everything in the FAQ about it, from altering the classpath, putting the .dlls and jars next to the files, etc. and even variations on that, pointing to different folders where I have copied the .jars and .dlls in the PATH and CLASSPATH, doing the same with the VM arguments, making a new PATH variable (I have a Path variable as well). I have told Java where the .jars are and had the .dlls next to them, I have configured the build path, I have done literally everything. I have googled the errors ambiguously and still have not been able to come up with a solution.
The only thing that worked is the Test file thing in the FAQ. However I do not know how to translate that to my current project (a lot of the code and organization is from someone else). I have placed the .dlls and .jars in every conceivable folder that could possibly remotely require them.
System info
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.101209-1647) [Pretty sure it’s 32 bit, but there’s nowhere on my computer where it specifies]
Language: English (Regional Setting: English)
System Manufacturer: Hewlett-Packard
Model: HP Compaq dc7600 Convertible
BIOS: Default System BIOS
Processor: Intel® Pentium® 4 CPU 3.20GHz (2 CPUs)
Memory: 3320MB RAM
Page File: 1107MB used, 4094MB available
CUDA
I have both versoin 4.0 of the CUDA toolkit, tools, and sdk installed. I used the cudatoolkit_4.0.17_win_32.msi and
cudatools_4.0.17_win_32.msi
to install the files on my computer, took the .dlls and .jars from installed folder at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin, and placed them in the proper folders. This was also one of the paths I used for the various VM arguments, PATH and CLASSPATH, etc.
Errors:
With VM Arguments of -Djava.library.path=C:\Documents and Settings<username>\workspace\RevEngr
java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Exception in thread “main”
Without VM Arguments
Error while loading native library “JCudaDriver-windows-x86” with base name “JCudaDriver”
Operating system name: Windows XP
Architecture : x86
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/JCudaDriver-windows-x86.dll’
at jcuda.LibUtils.loadLibraryResource(LibUtils.java:144)
at jcuda.LibUtils.loadLibrary(LibUtils.java:80)
at jcuda.driver.JCudaDriver.(JCudaDriver.java:192)
at com.place.gds.NikolasWorkspace.NikolasWorkshop.(NikolasWorkshop.java:39)
at com.place.gds.NikolaTesla.main(NikolaTesla.java:19)
Stack trace from the attempt to load the library as a file:
java.lang.UnsatisfiedLinkError: C:\Documents and Settings<username>\workspace\RevEngr\JCudaDriver-windows-x86.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at jcuda.LibUtils.loadLibrary(LibUtils.java:90)
at jcuda.driver.JCudaDriver.(JCudaDriver.java:192)
at com.place.gds.NikolasWorkspace.NikolasWorkshop.(NikolasWorkshop.java:39)
at com.place.gds.NikolaTesla.main(NikolaTesla.java:19)
Exception in thread “main” java.lang.UnsatisfiedLinkError: Could not load the native library
at jcuda.LibUtils.loadLibrary(LibUtils.java:122)
at jcuda.driver.JCudaDriver.(JCudaDriver.java:192)
at com.place.gds.NikolasWorkspace.NikolasWorkshop.(NikolasWorkshop.java:39)
at com.place.gds.NikolaTesla.main(NikolaTesla.java:19)
Directory example:
This is how the directory for my project is set up.
Folder:src
package:com.place.gds
package:com.place.gds.comm
package:com.place.gds.NikolasWorkspace
package:com.place.gds.optionsfutures
package:com.place.gds.quote
I have actually physically placed (in both Windows file system and Eclipse) every .jar and .dll that comes with the toolkit and sdk. I have included them in the src folder as well.
I have no idea what to do. Halp?