Why do I see a "java.util.zip.ZipException" error in my installer log file when I try to install the MinGW support package?
28 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2016-11-21
编辑: MathWorks Support Team
2021-8-25
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?
采纳的回答
MathWorks Support Team
2021-8-12
编辑:MathWorks Support Team
2021-8-25
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 个评论
Walter Roberson
2017-3-22
编辑:MathWorks Support Team
2021-5-19
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++
更多回答(2 个)
Jonathan Eagle
2017-3-8
编辑:Walter Roberson
2017-3-26
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 个评论
Jed Frey
2017-4-14
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!