MATLAB Answers

4

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?

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 Support
I also see the following inside of my MATLAB installer log file:
java.util.zip.ZipException
How can I proceed with installing this Support Package?
 

Products


Release

R2016b

25 Answers

 채택된 답변

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?

  14 Comments

Sign in to comment.


Walter Roberson 님이 편집함. 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.

  4 Comments

Show 1 older comment
Thank you so much for your help. It worked for me! (R2016b)

Sign in to comment.


Travis Allen 님의 답변 23 Feb 2017

I'm currently getting this error when trying to install via the steps above...
"There was an error installing third-party software for Support Package mingw: C:\MATLAB\SupportPackages\R2016a\downloads\mingw_download does not contain archives for third-party software used by the support package.
To continue with support package installation: Use "Install from Internet" or Use "Download from Internet" to download the complete set of files, and retry installing from folder."
Any insights on how to fix this?

  4 Comments

Show 1 older comment
Same problem for me, even after replacing archives.
Hello Everyone,
If you are still experiencing these issues, there could be several causes, the zip files were automatically extracted and they were not supposed to, or that the zip files are corrupt. Please contact us so we can help resolve the issue.
www.mathworks.com/support/contact_us

Sign in to comment.


Tanay Rastogi 님의 답변 28 Feb 2017

I have copied the 5 zip files in the folder, as mentioned by the MATLAB support team. After that, i run the the "mingw.mlpkginstall" MATLAB support package installer. I still see the error.
I have a question here, that when I run the package installer again, does it replace the files i copied in the folder. Because, it again downloads all the files (not sure what happens to files I copied). - Is that an issue? - How to directly install the files, without downloading them again? (Package Installer downloads them again)

  2 Comments

I have exactly same problem. When I try to reinstall the support package again, it download and replace wrong files again.
Hello Tanay and Reza,
The files you downloaded manually should replace the existing files in the support package folder. If they are being re-downloaded after you replace them or the install is still not working, then please contact us so we can help resolve the issue.
www.mathworks.com/support/contact_us

Sign in to comment.


Koen V 님의 답변 24 Mar 2017
Koen V 님이 편집함. 26 Mar 2017

Hi All,
Problem: Unable to install MinGW through Add-on Explorer in Matlab R2017a (fresh install of Matlab and Windows7).
In my case, the description above was causing some misunderstanding because these steps deviated slightly from the actual required workflow.
FOR ME THE PROBLEM IS SOLVED after doing the following procedure:
==========================================================
1. Try to install through 'Get Add-ons' in Matlab 2017a
-
2. Resulted in a Download error: There was a problem downloading the third-party software. To resolve this issue, contact Technical Support
-
3. Downloaded all files as described by Mathworks support team: https://uk.mathworks.com/matlabcentral/answers/313286-why-do-i-see-a-java-util-zip-zipexception-error-in-my-installer-log-file-when-i-try-to-install-the
-
4. It is stated that the installation process has already created some folders in: “C:\Users\_<username>_\Downloads\MathWorks\SupportPackages\R2016b\archives\3p\<name_of_archive>\”
However, these folders did not exist in my case. On the contrary, some zip-folders are created in a different location; "C:\Users\_<username>_\Downloads\MathWorks\SupportPackages\R2017a\archives\win64\3p" The folder naming of these folders does comply the description as stated before; "The name_of_archive would be one of the following and where xxxxxxxxxx is a string containing numbers.e.g.: tdm_MinGW64runtime.instrset_win64_xxxxxxxxxx"
So I decided to use the names of these zip-folder in the following steps
-
5. I created a new 3p folder in "C:\Users\_<username>_\Downloads\MathWorks\SupportPackages\R2016b\archives\" and created 5 new folder inside 3p that have the same name as the zip-folder in "C:\Users\_<username>_\Downloads\MathWorks\SupportPackages\R2017a\archives\win64\3p"
-
6. Then I placed the 5 archive folders from point 3 in their corresponding folder:
binutils-2.24.51-20140703-tdm64-1 --> copy to archives\3p\tdm_mingwbinutils.instrset_win64_1487954571
gcc-4.9.2-tdm64-1-c++ --> copy to archives\3p\tdm_mingwcpp.instrset_win64_1487954573
gcc-4.9.2-tdm64-1-core --> copy to archives\3p\tdm_mingwgcc.instrset_win64_1487954592
gdb-7.8.1-tdm64-3 --> copy to archives\3p\tdm_mingwdebugger.instrset_win64_1487954574
mingw64runtime-v3-git20141130-gcc49-tdm64-1 --> copy to archives\3p\tdm_mingw64runtime.instrset_win64_1487954589
-
7. Retry to install through the Add-on Explorer
-
I hope this helps you to solve the problem.

  0 Comments

Sign in to comment.


Jed Frey 님의 답변 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:
  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.

  0 Comments

Sign in to comment.





Followed the steps outlined by the support team (windows 10, matlab r2016b), and it worked! Thanks a lot!

  0 Comments

Sign in to comment.



It worked for me... Thanks a lot

  0 Comments

Sign in to comment.


Hu Jingliang 님의 답변 24 Feb 2017

not working. still have the third party package error after replacing the zip files

  1 Comment

Sign in to comment.



Matt Ward 님의 답변 13 Mar 2017

I ended up on this page after failing to create an Excel Add-In using Matlab Compiler 2016a. It turns out MinGW is not a supported compiler for Excel Add-Ins, contrary to the log file error. See compatible compilers here:
https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2016a_SupportedCompilers.pdf
For those trying to get the Excel Add-In working, the freely available Windows SDK 7.1 will work . I ran into some issues for me on Windows 10 using Microsoft's web-based installer file (the small file that will trigger a download for missing/desired components) however, I found success following the approach described here, where you download the .ISO:
-Matt

  0 Comments

Sign in to comment.


Fengzhou Wang 님의 답변 16 Mar 2017

is there anyone could show how to solve the problem from Mathwork Support. Do not ask everyone to ask for Mathwork Support.

  2 Comments

The error might happen since the downloaded files are not complete. So extract all the downloaded files and make sure they are fully downloaded. If not, redownload them and the links are right(accessed on 17th Mar 2017 ) and the only problem should be the network. And then reinstall it, the solution should work for Matlab 2016a.
One issue I had was that I was extracting the sourceforge zip files into the specified folder (for 2016a). The zip files themselves must be present in this folder in order for the install to succeed.

Sign in to comment.


Nezha Farhi 님의 답변 23 Mar 2017

Thank you it worked perfectly

  0 Comments

Sign in to comment.


med BT 님의 답변 24 Mar 2017

Thank you it works great

  0 Comments

Sign in to comment.


Mengnan Zhao 님의 답변 6 Apr 2017

If you follow this instruction, the only reason that you still have the same problem before is that the downloaded zip files are not complete. To check this, you should open the zip files to see whether it can be unfolded. If yes, I guess you probably can succeed. This is how I fix the problem.

  0 Comments

Sign in to comment.



I use R2015b and this work for me. First I copied all zip files to the folder "C:\MATLAB\SupportPackages\R2015b\downloads\mingw_download" and renamed the files as the instruction said but it still got error. Then I delete all zip files and copied them again without renaming and it worked. Hope this help!

  0 Comments

Sign in to comment.



Hi,
I tried to follow all the steps that mentioned here, but unfortunatly I have problem of installing the support package and it gives me an error. my matlab is matlab 2016b. what should I do? anybody tries this instruction for matlab 2016b?
Regards
hamid

  0 Comments

Sign in to comment.


S 님의 답변 18 Apr 2017

Ok, I like it.

  0 Comments

Sign in to comment.


shuo liu 님의 답변 12 May 2017

Why there is no the support package in my file?

  0 Comments

Sign in to comment.


Kaveh 님의 답변 19 May 2017

It is ridiculous that after MONTHS the Matlab installer is still not fixed for this.

  1 Comment

Hi Kaveh,
This issue was resolved in R2017a. Also for R2016b we have a patch available to install that resolves the issue as well, I have attached the link below:
If you are using R2015b or R2016a and still have the issue, please contact us so we can assist.

Sign in to comment.


jiaxin he 님의 답변 1 Jun 2017

无法重新加载 'D:\Program Files (x86)\matlab\bin\win64\libmwsimulink.dll'

  0 Comments

Sign in to comment.



Worked with me : R2015b Win10. All thanks.

  0 Comments

Sign in to comment.


Aysha Ashraf 님의 답변 8 Jun 2017

following all instructions but still facing this error in matlab 2015b

  0 Comments

Sign in to comment.