#备忘# 不需要注册Oracle账户的下载java/jdk的方法
Fwd: https://gist.github.com/wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6#gistcomment-3154732
In case anyone is confused by the instructions, here's what you need to do:
-
Go to the oracle download page and accept the license agreement. https://www.oracle.com/java/technologies/downloads/#java8
-
Right click on the package you want to download and copy the link - you should see something like https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe
-
Replace the
otn
withotn-pub
in the above URI -
Paste this new URI into your browser address bar or use wget as
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe