数据库
首页 > 数据库> > 批量下载oracle jdk

批量下载oracle jdk

作者:互联网

 

1.打开

https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html

2.同意条款

3.浏览器F12 Console 

粘贴 下面语句得到所有的下载地址

document.querySelectorAll("a[href^='https://download.oracle.com/otn/java/jdk/']").forEach(e=>console.log(e.href))

 

 

 

4.如果批量下载可以地址保存到一个文件中,就是官网地址中把otn改成otn-pub

jdk-8u231.txt

https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-arm32-vfp-hflt.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-arm64-vfp-hflt.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-i586.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-x64.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-macosx-x64.dmg
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-sparcv9.tar.Z
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-sparcv9.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-x64.tar.Z
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-x64.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-i586.exe
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe
jdk-11.0.5.txt
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_linux-x64_bin.deb
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_linux-x64_bin.tar.gz
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_osx-x64_bin.dmg
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_osx-x64_bin.tar.gz
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_solaris-sparcv9_bin.tar.gz
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_windows-x64_bin.exe
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_windows-x64_bin.zip

5.下载命令:

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" -i download.txt

 如果单个文件,就换成具体的下载地址

我用的国外的服务器下载挺快的。

 

标签:8u231,批量,otn,jdk,download,oracle,com
来源: https://www.cnblogs.com/startnow/p/12077653.html