C
cppaddict
I have the following code to load a native .DLL in my java class:
static {
System.load("C:\\Java\\myNativeMethods.dll");
}
It had been working fine. Then I moved my project to a new folder and
gave it a new package name. However, I did not change or move my .DLL,
and the code that calls it (above) was untouched. However, I am now
getting an UnsatisifiedLinkError at runtime when my app hits the first
native method call. Why is this happening? How can I fix it?
Thanks,
cpp
static {
System.load("C:\\Java\\myNativeMethods.dll");
}
It had been working fine. Then I moved my project to a new folder and
gave it a new package name. However, I did not change or move my .DLL,
and the code that calls it (above) was untouched. However, I am now
getting an UnsatisifiedLinkError at runtime when my app hits the first
native method call. Why is this happening? How can I fix it?
Thanks,
cpp