mcrinstaller function doesn't work
Show older comments
Hi,
when I write in the command mcrinstaller it returns:
Undefined function or variable 'mcrinstaller'.
I check matlab path settings and JA builder is in it.
How is it possible?
EDIT: Running Matlab builder JA (Start->MATLAB->MATLAB Builder JA->Deployment Tool(deploytool)) it doesn't work.
Answers (1)
Image Analyst
on 10 Sep 2012
0 votes
What does "ver" report? Do you have the MATLAB Compiler? Why are you trying to execute the run time library installer from the command window anyway? It should be run from Windows Explorer or something. If for some reason you did want to install it from within MATLAB, you'd have to prefix mcrinstaller with an exclamation point, like you do with any executable you want to launch from the command line, but I don't recommend that you do it from there.
17 Comments
Kaustubha Govind
on 10 Sep 2012
"mcrinstaller" is a MATLAB function that returns the location of MCRInstaller.exe - this is probably what the OP is trying to do.
cyberdyne
on 10 Sep 2012
Image Analyst
on 11 Sep 2012
I'm not familiar with Builder JA. I use "MATLAB Compiler" to build my programs/scripts into stand alone executables. Looks like you don't have that.
Walter Roberson
on 11 Sep 2012
"all toolboxes installed" does not mean they are licensed. Try
which -all mcrinstaller
I suspect it will tell you that you have no license.
cyberdyne
on 11 Sep 2012
Walter Roberson
on 11 Sep 2012
Builder JA depends upon MATLAB Compiler; do you have MATLAB Compiler installed?
cyberdyne
on 11 Sep 2012
Image Analyst
on 12 Sep 2012
Try running this code:
% Print out licenses that have been used (checked out) to the command window.
license('inuse');
% Check that user has the Compiler Toolbox in use.
hasToolbox = license('test', 'compiler')
if hasToolbox
message = sprintf('You have the MATLAB Compiler installed, licensed, and checked out.');
else
% User does not have the toolbox license checked out yet.
% User may have the compiler installed,
% but it they haven't used any of the functions from it,
% or somehow otherwise checked it out, then it won't show up.
% Or they may simply not have the compiler at all.
message = sprintf('Either you do not have the MATLAB Compiler,\nOR you may have it but have not used it yet.\nPlease type mcc on the command line, and try this test again.');
end
uiwait(msgbox(message));
Image Analyst
on 12 Sep 2012
"retuns"?
cyberdyne
on 14 Sep 2012
Image Analyst
on 14 Sep 2012
Your compiler now works and you're now having some kind of system problem with an Environment variable. Is that a MATLAB problem? If you think it is, call the Mathworks. http://matlab.wikia.com/wiki/FAQ#During_installation.2C_MATLAB_crashes.2C_hangs.2C_gives_an_error_message_or_otherwise_does_not_install_correctly. Or try Yair Altman's web site http://undocumentedmatlab.com/
Walter Roberson
on 14 Sep 2012
Try
!javac -version
cyberdyne
on 15 Sep 2012
cyberdyne
on 17 Sep 2012
Walter Roberson
on 17 Sep 2012
!javac creates an OS command shell to execute javac, and all the environment variables in effect will be copied to the command shell.
javac in the command window would attempt to execute a MATLAB routine named "javac", but there does not happen to be a routine with that name.
cyberdyne
on 17 Sep 2012
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!