jni - Which Windows Libraries are missing from the Visual C++ Redistributable Package? -
i using jni interface can driver wrote using msvc++ 2012. compiles , runs fine - on computer. whenever try run on other computer, jni "unsatisfiedlinkerror" - can't find dependent libraries. i've implemented jni before, , typically issue resolved installing microsoft visual c++ redistributable package before running program. redistributable not solve issue, however, installing entire msvc++ express 2012 ide on computer in question seems make work fine. thus, assume means there dependency gets installed , added path when ide installed not when redistributable installed. verification, uninstalled ide , jni driver failed load once again. primary difference between , other implementations of jni use windows.h since required can api use in driver. ideas on libraries installed ide not redistributable , prototypes included windows.h? (note: aware windows.h includes number of headers imagine other criteria make issue bit more specific.)
first guess: installing debug build intead of release build. debug builds depend on debug versions of crt, cannnot redistributed.
check using right "microsoft visual c++ redistributable package". there 2012, 2012 update 1 , 2012 update 2 (as many 2010, 2008, ...).
assuming dependencies load-time dlls, can use depends find out what's missing. (note: you'll typically see delay-load dlls "missing". ignore thoses; see faq.)
of course, once find out name , path of missing dll, you'll have find out redist package installs it.
Comments
Post a Comment