I'm developing a simple standalone java application which uses a (single) dll. So far so good. The problem is that an older version of this dll is already present in most users'PCs (c:\windows\myDLL.dll, so it's in the PATH).
I would like the application to be able to use its own dll, i.e. the newer version, which is located in its "lib" directory.
Any ideas? I even thought I could swap dll (if the application finds the older version in c:\windows then it could overwrite it) but it is (obviously) locked by the application itself, which while loading probably opens the dll in the PATH...