Why do I see a "java.util​.zip.ZipEx​ception" error in my installer log file when I try to install the MinGW support package?

조회 수: 29 (최근 30일)
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
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
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
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.

Jed Frey
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:
  1. Teaching the downloading tool to respect HTTP return codes.
  2. 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.

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by