creating JNI dll's with visual studio 2005
843829Mar 22 2006 — edited May 1 2006Hello,
I've been using the JNI for years and I have a well-developed JNI DLL to interface to our legacy native code base. Our company is now upgrading to visual studio 2005, which comes with the wonderful baggage of the new ".manifest" scheme binding tightly to MSVCR80.DLL.
When I compile/link my JNI source with VS-2005, the java jre refuses to load the resulting DLL, giving an error "Cannot find MSVCR80.DLL-- try reinstalling your application... blah blah blah". I have embedded the manifest file into the DLL (using the new mt.exe tool), and the MSVCR80.DLL is installed properly in the WinSxS directory.
But it seems java doesn't know how to load VS-2005 linked DLL's with the new manifest scheme. I've created a small test application which simply calls "LoadLibrary" on my JNI DLL, and my test app is able to load the DLL with no problem.
Is there a way for the JRE (1.5.0_06) to support loading native code compiled with visual studio 2005?
Any help is appreciated. Thank you.