This is not an area I have much experience in (and the little experience I have had is from years ago) so the following is more suggestion than advice.
I guess it works when you put the dll's in C:/Program Files (x86)/Java/jdk1.5.0_14/bin because that path is set in the environment variable PATH. If this is the case you should be able to solve your problem by setting java.library.path system property to include the directory the DLL's normally reside in.
You can set this programmatically using System.setProperty(..) or on the command line by passing the following switch to java ie
Code:java -Djava.library.path=c:\myApp\myNativeDlls myApp




Reply With Quote
