Why do I get java class IMPORT errors when compiling a deployed application using MATLAB Compiler 4.16 (R2012a)?
Mostrar comentarios más antiguos
I have a MATLAB code that imports some java classes using IMPORT, as below:
import com.google.common.base.Stopwatch;
This code runs fine without issues in MATLAB, but when I try to deploy it using MCC or DEPLOYTOOL, I get the following error:
Error: File: T:\1-GOVY7I\repro_import_build_error\repro_import_build_error\standalone_hello.m Line: 2 Column: 8
Arguments to IMPORT must either end with ".*"
or else specify a fully qualified class name: "com.google.common.base.Stopwatch" fails this test.
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
2 item(s) added.
Generating MATLAB path for the compiled application...
Created 40 path items.
Begin validation of MEX files: Wed Feb 22 15:24:12 2012
End validation of MEX files: Wed Feb 22 15:24:12 2012
Parsing file "T:\1-GOVY7I\repro_import_build_error\repro_import_build_error\standalone_hello.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2011b\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2011b\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Unable to determine function name or input/output argument count for function
in MATLAB file "standalone_hello".
Please use MLINT to determine if this file contains errors.
Error using mcc
Error executing mcc, return status = 1 (0x1).
I have made sure that the java JAR files are on the dynamic java path and is available to MATLAB.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with MATLAB Compiler en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!