Why do I get a Java Exception when compiling with the MCR included in the package using MATLAB Compiler?
Show older comments
I have a deployable project but when I try and compile it and select the "Runtime included in package" option, the compilation fails during the packaging phase with the following Java exception error:
Exception in thread "com.mathworks.toolbox.compiler.plugin.PackageCommand.embedPayload" java.lang.Exception: Update resource failed: 8
at com.mathworks.toolbox.compiler.plugin.Resource_win.updateResource(Native Method)
at com.mathworks.toolbox.compiler.plugin.Package_win.embedPayload(Package_win.java:60)
at com.mathworks.toolbox.compiler.plugin.PackageCommand$3.run(PackageCommand.java:447)
at java.lang.Thread.run(Unknown Source)
I do not get this error when I select the "Runtime downloaded from Web" option.
The answer is also applicable if you get the PackagingLog.txt messages:
Failed to embed unzip in your application.
Update resource failed: 0000000037E55C30
Failed to embed installer splash screen C:\Program Files\MATLAB\R2014a\toolbox\compiler\Resources\default_splash.png.
Update resource failed: 0000000037E55CB0
Attempting to embed default installer splash screen, C:\Program Files\MATLAB\R2014a\toolbox\compiler\Resources\default_splash.png.
Failed to embed installer splash screen C:\Program Files\MATLAB\R2014a\toolbox\compiler\Resources\default_splash.png.
Update resource failed: 0000000037E55BB0
Failed to create the full installer.
No installer package created.
Or:
ERROR: Failed to embed the install agent from C:\Users\8080\AppData\Local\Temp\8080\installAgent8.3_win64\InstallAgent.zip. Update resource failed: 000000006476EFA0 Failed to create the full installer. No installer package created.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!