Installing App Package using matlab.apputil.install generates an error
3 次查看(过去 30 天)
显示 更早的评论
I created a package app using the matlab.apputil.package function and I don't get any errors. Same using the GUI with the same project file. Installing and running the application works just fine until I add some png images to the package. Then I get the following error:
Error using matlab.apputil.install (line 51)
Unable to install the specified file for the following
reason:
CLEAR can only clear the import list in the base
workspace
matlab.apputil.install(appFile);
com.mathworks.jmi.MatlabException: CLEAR can only clear the import list in the base workspace
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:219)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1540)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:20)
at com.mathworks.appmanagement.InstallAppMatlabWorker.doOnMatlabThread(InstallAppMatlabWorker.java:7)
at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.MatlabWorker.start(MatlabWorker.java:248)
at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.go(AbstractAppManagementMatlabWorker.java:52)
at com.mathworks.appmanagement.PackagingApiImpl.extract(PackagingApiImpl.java:25)
at com.mathworks.appmanagement.AppManagementApiImpl.install(AppManagementApiImpl.java:153)
at com.mathworks.appmanagement.AppManagementApiImpl.install(AppManagementApiImpl.java:75)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!