Step 3: Windows - powershell fails downloading jdk-8u92-windows-x64.exe


#1

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"

fails with downloading jdk-8u92-windows-x64.exe.
It’s not possible to download it without account/login … at least not with the URL the script tries to download.

I downloaded and installed the file manually. Unfortunately I still can’t run
C:\ProgramData\chocolatey\lib\jdk8\tools\chocolateyInstall.ps1

Error message:

jdk8 v8.0.92.1 (forced) [Approved]
jdk8 package files install completed. Performing other installation steps.
Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-windows-x64.exe
ERROR: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
The install of jdk8 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\jdk8\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - jdk8 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\jdk8\tools\chocolateyInstall.ps1'.
 See log for details.