Why do I see a "java.util.zip.ZipException" error in my installer log file when I try to install the MinGW support package?
Show older comments
When installing the MinGW Support Package, I see the following error:There was a problem installing the third-party software. To resolve this issue, contact Technical SupportI also see the following inside of my MATLAB installer log file:java.util.zip.ZipExceptionHow can I proceed with installing this Support Package?
Accepted Answer
More Answers (2)
Jonathan Eagle
on 8 Mar 2017
Edited: Walter Roberson
on 26 Mar 2017
8 votes
This is the response from mathworks with instructions that worked for me. The other instructions here did not.
---------------------------------
Thank you for this followup information. I think there may be some confusion with the workaround instructions, as you should not need to rename any files or folders during this process. Once you have downloaded the 5 zip files, they need to be placed in the following folders found at C:\Users\<your_username>\Downloads\MathWorks\SupportPackages\R2016b\archives\3p:
- '"mingw64runtime-v3-git20141130-gcc49-tdm64-1.zip" placed in "tdm_mingw64runtime.instrset_win64_1473452065" folder
- "binutils-2.24.51-20140703-tdm64-1.zip" placed in "tdm_mingwbinutils.instrset_win64_1473452064" folder
- "gcc-4.9.2-tdm64-1-c++.zip" placed in "tdm_mingwcpp.instrset_win64_1473452064" folder
- "gdb-7.8.1-tdm64-3.zip" placed in "tdm_mingwdebugger.instrset_win64_1473451976" folder
- "gcc-4.9.2-tdm64-1-core.zip" placed in "tdm_mingwgcc.instrset_win64_1473452033" folder
Once the zip files are placed in each of these folders, you need to run the same MinGW support package installer again (from Add-Ons Explorer). The installation will now proceed and skip over the section where it needs to download third-party files.
Jed Frey
on 14 Apr 2017
The reason this is happening is because SourceForge redid their web structure. The Matlab downloading tool isn't respecting their 302 status code.
If you open the 1kB 'zip' files with Notepad++ (or any other text editor) you will see something like this:
<html>
<head>
<title>302 Found</title>
</head>
<body>
<h1>302 Found</h1>
The resource was found at <a href="https://iweb.dl.sourceforge.net/project/tdm-gcc/MinGW-w64%20runtime/GCC%204.9%20series/mingw64runtime-v3-git20141130-gcc49-tdm64-1.zip">https://iweb.dl.sourceforge.net/project/tdm-gcc/MinGW-w64%20runtime/GCC%204.9%20series/mingw64runtime-v3-git20141130-gcc49-tdm64-1.zip</a>;
you should be redirected automatically.
</body>
</html>
The fix should be as simple as either:
- Teaching the downloading tool to respect HTTP return codes.
- Fix the URLs in the packager.
For those downloading the files manually, make sure to delete the existing 1kB files. Windows will sometimes automatically just rename the files with (1) at the end instead of asking if you want to replace the existing files.
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler 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!