| MATLAB Compiler | ![]() |
Running Deployed Applications
If you use a relative path to start a deployed application from a directory that is not your working directory, it may fail. For example, if you execute your application using
Cannot find the directory containing the 'myProgram' component, which is required by this application. Make sure the directory containing 'myProgram.ctf' is on your dynamic load library path (PATH on Windows, or LD_LIBRARY_PATH on Linux, for example), or your application search path (PATH on both Windows and Linux). Error initializing CTF Archive.
Using a relative path is not supported directly. When you start a program from a directory using a relative path, your actual working directory is not the directory of the executable. The working directory must be the same as the executable for the CTF file to be found or else the directory containing your CTF file must be on your system path. Therefore, you must start your application from its directory or else modify your system path.
| Using MAT-Files in Deployed Applications | Compiling a GUI That Contains an ActiveX Control | ![]() |
© 1994-2005 The MathWorks, Inc.