Why do I see a "java.util.zip.ZipException" error in my installer log file when I try to install the MinGW support package?
30 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 21 Nov 2016
Modifié(e) : MathWorks Support Team
le 25 Août 2021
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?
Réponse acceptée
MathWorks Support Team
le 12 Août 2021
Modifié(e) : MathWorks Support Team
le 25 Août 2021
This error was due to incomplete third-party downloads through the MATLAB Support Package installer. This issue has since been resolved. The current solution is to download and install the MinGW Support Package through the MATLAB client using the following method:
How to install MinGW 4.9.2 for use in MATLAB?
1 commentaire
Walter Roberson
le 22 Mar 2017
Modifié(e) : MathWorks Support Team
le 19 Mai 2021
Ichan Lo comments to Konrad Groeneveld:
I was also stuck in second step for R2017a, however I try to use microsoft visual studio professional 2015. It works for compiler C++
Plus de réponses (2)
Jonathan Eagle
le 8 Mar 2017
Modifié(e) : Walter Roberson
le 26 Mar 2017
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.
0 commentaires
Jed Frey
le 14 Avr 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.
0 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Support for MinGW-w64 C/C++ Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!