Answered by:
Visual Studio 2017 and xamarin installation error

Question
-
User-973886032 posted
Hello guys
I am trying to modify VS and add xamarin to my installation, however at 25% it keeps stopping and telling me that it cant download this link
https://go.microsoft.com/fwlink/?LinkID=842899
when I click on it, it takes me to oracle's website at this link
http://download.oracle.com/errors/download-fail-1505220.html
upon completion it says Couldn't downloadpackage JavaJDKV2
kindly advise
Ehi
<div id="banner" style="list-style: none; color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12px;">
<div id="bannerMid" style="list-style: none;"></div> </div>
Sorry!
In order to download products from Oracle Technology Network you must agree to the OTN license terms. Be sure that... Your browser has "cookies" and JavaScript enabled.
You clicked on "Accept License" for the product you wish to download.
You attempt the download within 30 minutes of accepting the license.
From here you can go... Back to Previous Page Site Map OTN Homepage Wednesday, January 3, 2018 1:56 PM
Answers
-
User-973886032 posted
Thanks
I found the problem and thought I post it for those who might have similar problems
- Blocked content - The network I was using was blocking .exe files from downloading, (So I was getting a few errors, e.g. at a certain point it would say, cannot download) so I moved to another network and it was fine
2. Microsoft removal tool - The installer also complained it could not find/access a certain file or folder, hence I used the Microsoft installation/uninstallation help tool to remove all instances of VS 2017 and any related software that was giving trouble e.g. I had four instances of Microsoft visual c++ runtime 2017 So I removed the 2017 installations and left the older years
Name of the tools is - MicrosoftProgram_Install_and_Uninstall.meta
and It can be found here https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed
3. then the network was blocking 3rd party websites, e..g Oracle and the error below pops up
Couldn't download JavaJDKV2 After nine attempts, there was a problem downloading the following file: https://go.microsoft.com/fwlink/?linkid=863182 Select Continue to install Visual Studio without downloading this file. This might cause problems with other parts of the installation. Select Retry to try downloading the file again. Select Cancel to cancel the Visual Studio install.
For the oracle error below, I found the solution here https://developercommunity.visualstudio.com/content/problem/160625/packageidjavajdkv2packageactiondownloadpackageretu-5.html
I downloaded the x64 and i86 exe from oracle's website below and put them in the required folder (Which I created under packages sub folder)
Added a solution by John Rennemeyer · Dec 06, 2017 at 04:06 PM
<div class="reply-body">
The fix for me was as follows:
Download the JDK 8u152 Windows x64 from here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Then copy it to the following folder:
C:\ProgramData\Microsoft\VisualStudio\Packages\JavaJDKV2,version=1.8.2,chip=x64
Then go back into the Visual Studio Installer and Modify.
I hope this helps,
John
Thanks for the tip.
Unfortunately, this didn't help; the installer still complains about not being able to download the JDKv2 component. Maybe the path is wrong?
I managed to get it to work.
I found a log file that contained the full link that is failing, and for some reason it's not for the x64 version, but the x86 Version of the JDK (jdk-8u152-windows-i586.exe), and the required folder name is "C:\ProgramData\Microsoft\VisualStudio\Packages\JavaJDKV2,version=1.8.2,chip=x86". This seems to work for me.
Thanks for the help. This worked for me also. Both x86 and x64 were needed in my case.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, January 9, 2018 5:03 PM
All replies
-
User347430248 posted
Hi afrika,
I try to view the issue and find that your issue is related with Visual Studio Setup and Installation.
this forum handles the Visual Studio Web Development related issues.
so I try to contact MSDN Visual Studio Setup and Installation Forum and confirm it.
they suggested me to redirect you to forum below. which is best suitable and correct forum for your issue.
Visual Studio Setup and Installation
you can post your issue in that forum. community members and MSDN engineers will try to provide you further suggestions to solve the issue.
Thanks for your understanding.
Regards
Deepak
Monday, January 8, 2018 1:37 AM -
User-973886032 posted
Thanks
I found the problem and thought I post it for those who might have similar problems
- Blocked content - The network I was using was blocking .exe files from downloading, (So I was getting a few errors, e.g. at a certain point it would say, cannot download) so I moved to another network and it was fine
2. Microsoft removal tool - The installer also complained it could not find/access a certain file or folder, hence I used the Microsoft installation/uninstallation help tool to remove all instances of VS 2017 and any related software that was giving trouble e.g. I had four instances of Microsoft visual c++ runtime 2017 So I removed the 2017 installations and left the older years
Name of the tools is - MicrosoftProgram_Install_and_Uninstall.meta
and It can be found here https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed
3. then the network was blocking 3rd party websites, e..g Oracle and the error below pops up
Couldn't download JavaJDKV2 After nine attempts, there was a problem downloading the following file: https://go.microsoft.com/fwlink/?linkid=863182 Select Continue to install Visual Studio without downloading this file. This might cause problems with other parts of the installation. Select Retry to try downloading the file again. Select Cancel to cancel the Visual Studio install.
For the oracle error below, I found the solution here https://developercommunity.visualstudio.com/content/problem/160625/packageidjavajdkv2packageactiondownloadpackageretu-5.html
I downloaded the x64 and i86 exe from oracle's website below and put them in the required folder (Which I created under packages sub folder)
Added a solution by John Rennemeyer · Dec 06, 2017 at 04:06 PM
<div class="reply-body">
The fix for me was as follows:
Download the JDK 8u152 Windows x64 from here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Then copy it to the following folder:
C:\ProgramData\Microsoft\VisualStudio\Packages\JavaJDKV2,version=1.8.2,chip=x64
Then go back into the Visual Studio Installer and Modify.
I hope this helps,
John
Thanks for the tip.
Unfortunately, this didn't help; the installer still complains about not being able to download the JDKv2 component. Maybe the path is wrong?
I managed to get it to work.
I found a log file that contained the full link that is failing, and for some reason it's not for the x64 version, but the x86 Version of the JDK (jdk-8u152-windows-i586.exe), and the required folder name is "C:\ProgramData\Microsoft\VisualStudio\Packages\JavaJDKV2,version=1.8.2,chip=x86". This seems to work for me.
Thanks for the help. This worked for me also. Both x86 and x64 were needed in my case.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, January 9, 2018 5:03 PM