UnsatisfiedLinkError, Access Denied and Parallels
Hi all,
I'm trying to run Jawin in Eclipse. Knowing that the program needs to find the file jawin.dll, I have added -Djava.library.path=c:\sources\jawin-2.0-alpha1\bin
to the Arguments field in my run configurations.
With this, I still get the error Exception in thread"main" java.lang.UnsatisfiedLinkError: no jawin in java.library.path
Reading around a little, I find that I should be able to load this from within the code itself, using System.load("C:\\sources\\jawin-2.0-alpha1\\bin");
This now give me the error Exception in thread"main" java.lang.UnsatisfiedLinkError: C:\sources\jawin-2.0-alpha1\bin: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
Reading around a little more, I find that this occurs when the .dll file is set to read-only. Clicking the 'properties' menu on the file, read-only is NOT checked. Read-only IS checked (and greyed-out, though temporarily changable) in each of the folders leading up to the file, but as far as I have understood, these don't really mean anything. Regardless, I can't seem to permenantly change them.
I've read that people can sometimes have problems accessing .dlls if they are on networked drives. The only thing I can think that MIGHT have an affect is that I am running Windows XP on Mac Parallels. I can't really see why this should matter, though.
Any thoughts or hints on how I can get this working would be greatly appreciated!
Thanks,
Sam

