Builder JA problem in R2013b

1 view (last 30 days)
Martin
Martin on 11 Feb 2014
Edited: Martin on 12 Feb 2014
I am using Builder JA in the R2013b version of MATLAB on OS X (10.9.1). I have a very simple MATLAB file that I want to convert to Java but am having run-time problems when calling the dicominfo method.
Using Builder JA I have the following MATLAB file (with DICOM-related methods isdicom and dicominfo):
function mask = ePAD_regiongrow( point, files, options )
if (nargin >= 2)
curfile = files(1);
if (iscell(curfile))
curfile = files{1};
end
if (isdicom(curfile))
iminfo = dicominfo(curfile);
end
end
end
When I import this file into the builder it correctly adds dicomdict.m, dicominfo.m and isdicom.m to the "Files required for your application to run" section.
When deploy the resulting Java JAR I get a "Could not find dicom-dict.txt file" error so I manually added this to the required files area. (This seems like a bug?)
I regenerate the JAR and deploy again and now I get the following error:
com.mathworks.toolbox.javabuilder.MWException:Undefined function 'dicomparse' for input arguments of type 'char'.
I am deploying this to a CentOS machine with Java 7 runtime (1.7.0_51) and version R2013B of the MCR installed.
What I am missing?
Follow up: I installed MATLAB R2013b on a CentOS machine, generated the JAR, deployed the new JAR, and it now works. Is there a restriction that Builder JA must be run on the same architecture as the target deployment?
TIA

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!