Dear all, I am encountering an error message when compiling a couple of functions into a class with the Matlab Builder for JA toolbox. The entire error message follows:
ant:<mkdir dir="C:\Documents and Settings\mrv1z07\My Documents\My Dropbox\CALLBACKS\matlabOptim_project\distrib" /><mkdir dir="C:\Documents and Settings\mrv1z07\My Documents\My Dropbox\CALLBACKS\matlabOptim_project\src" />mcc -W java:matlabOptim_project,matlabOptimClass -T link:lib -d 'C:\Documents and Settings\mrv1z07\My Documents\My Dropbox\CALLBACKS\matlabOptim_project\src' -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -S -v class{matlabOptimClass:C:\OPTIMAT\development\CALLBACKS\randomVars.m,C:\OPTIMAT\development\CALLBACKS\randomVars_noAPI.m,C:\OPTIMAT\development\CALLBACKS\test.m} MATLAB:I18n:InconsistentLocale - The system locale setting, en_US.1252, is different from the user locale setting, en_GB.1252.Compiler version: 4.13 (R2010a) Processing include files...2 item(s) added.Processing directories installed with MCR...The file C:\Documents and Settings\mrv1z07\My Documents\My Dropbox\CALLBACKS\matlabOptim_project\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.2 item(s) added.Generating MATLAB path for the compiled application...Created 39 path items.Begin validation of MEX files: Fri Aug 05 13:32:47 2011 End validation of MEX files: Fri Aug 05 13:32:47 2011 Warning: Duplicate directory name: C:\OPTIMAT\development\CALLBACKS. Warning: Duplicate directory name: C:\OPTIMAT\development\CALLBACKS. Parsing file "C:\OPTIMAT\development\CALLBACKS\randomVars.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\OPTIMAT\development\CALLBACKS\randomVars_noAPI.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\OPTIMAT\development\CALLBACKS\test.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files\MATLAB\R2010a\toolbox\compiler\deploy\deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files\MATLAB\R2010a\toolbox\compiler\deploy\printdlg.m" (Referenced from: "Compiler Command Line"). Unable to determine function name or input/output argument count for function in M-file "C:\OPTIMAT\development\CALLBACKS\randomVars.m". Please use MLINT to determine if this file contains errors.
I have used MLINT on both functions, and they are both fine (warnings, but no errors).
I found a similar support question here:
<http://www.mathworks.com/support/solutions/en/data/1-A4CIW9/index.html?product=CO&solution=1-A4CIW9>
But the answer is not the right one for my problem, my license is fine and testing the compiler with a very simple test function worked fine.
So I am wondering if anyone can shed some light into the meaning of this error.
Here's a bit more info: * Matlab 2010a * JAVA 1.6 * One function calls a simple JAVA class of my own, which has been added to the javaclasspath. * The other function calls another of my JAVA classes, this one a bit more complex because it uses some other program's API classes that will not work until executed properly, but have been imported to the javaclasspath and also they have been put in a try catch block to avoid errors when the execption is caught.
I tried with the first of the two functions only, the one that doesn't use the API classes, but the same error was thrown when compiling (only the function name changed).
Any ideas? I'd be very grateful.
Kind regards Maria
Best Answer