User`s guide

Compiler Tips
Deploying Appli
cations That Call the Java Native
Libraries
If your applicat
ion interacts with Java, you need to specify the search path for
native method li
braries by editing
librarypath.txt and dep loying it.
1 Copy librarypa
th.txt
from
matlabroot/to
olbox/local/librarypath.txt
.
2 Place li brar ypath.txt in <mcr_root>/<ver>/toolbox/local.
<mcr_root> refers to the com plete path where the MCR library archive
files are installed on your machine.
3 Edit libraryp
ath.txt
by adding the directory that contains the native
library that y
our application’s Java code needs to load.
Locating .fig
Files in Deployed Applications
MATLAB Compil
er locates
.fig files automatically w h en there is an M-file
with the same n
ame as the
.fig file in the same directory. If the .fig file
does not foll
ow this rule, it must be added with the
-a option.
Blocking Exe
cution of a Console Application That
Creates Figu
res and Terminating Figures by Force
“Blocking Ex
ecution of a Console Application with the
mclWaitFor
FiguresToDie Method” on page 5-25
“Terminati
ng Figures by Force with the mcl Ki ll A l lFigures Method” on
page 5-26
Blocking Execution of a Console Application with the
mclWaitForFiguresToDie Method
The purpose of mclW aitForFiguresToDie is to block execution of a calling
program as long as fig ures created in encapsulated M-code are displayed.
mclWaitForFiguresToDie takes no arguments. Your a pplication can call
mclWaitForFiguresToDie any time during execution. Typica lly you use
mclWaitForFiguresToDie when:
5-25