Can’t download JDK 8

I’m trying to setup Unity to build for Android. But I can’t get the Java Development Kit. Can’t download it and can’t find it either.

In this answer, the guy says

To ensure JDK is installed, just go through the following :
press Win + R
type ‘cmd’ in the popup and press button OK.
in the console which has opened, type javac -version and press enter.
You should see as an output :
javac 1.8.0_XX
If so SDK is installed.

I did that and I got “javac 1.8.0_XX”, and so I assumed I had the JDK, so I went to Unity > External Tools > JDK and tried linking the following path: “C:\Program Files\Java\jre1.8.0”, and got the error message: “The path you specified does not look like a valid JDK installation. Android development requires at least JDK(1.7), having JRE only is not enough. Please make sure you are selecting a suitable JDK home directory or download and install the latest JDK: link”

I clicked the download link for windows x64 and it never loads and eventually says there’s no connection. I tried the x86 as well.

In this SO question How do I find where JDK is installed on my windows machine?

Answer: For windows, in the command prompt:

c:\> for %i in (java.exe) do @echo.   %~$PATH:i

And so I did that and got the path “C:\ProgramData\Oracle\Java\javapath\java.exe”

When I try linking via Unity > External tools > JDK it doesn’t find any files.

I’m a bit clueless now.

Xổ số miền Bắc