MATLAB: Test standalone application

i18n:localedatabasenotfound when test standalone application

I built a standalone application on a 32-bit XP computer using R2010a and Visual Studio 2008. The executable runs OK on the buiding computer.
I tested the executable on another computer, 64-bit Windows 7, in the command window. It starts ask for dlls from a pup up window. And a message comes on the command window says:
MATLAB:I18n:LocaleDatabaseNotFound – Cannot find the MATLAB locale database. The MATLAB process default locale is set to "en_US.US-ASCII". My Own Exception: Fatal error loading library F:\mclmcr.dll Error: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
I copied from the building computer those dlls to the directory of the excutable. Finally the pop up window no longer appears. But the command window message continues and the executable did not run through.
What should I do at this point? Thanks.

Best Answer

Well the executable is not where you probably think it is. The real executable is not where your app's .exe is. See the FAQ for things to try: http://matlab.wikia.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I_try.3F