Skip to main content
100%

Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt

✓ Published0🌍 Public
PP7h
Last edited Jul 25, 2018
Created on Mar 24, 2014

This example shows a collection of Bash scripts for downloading Oracle JDK/JRE binaries from the Oracle website via the terminal. It demonstrates how to automate fetching multiple platform-specific packages (Linux, Windows, macOS) and documentation in a single invocation using `curl` or `wget`. The scripts use `wget` with options like `-c` for resuming interrupted downloads and `--header` to pass the required Oracle license cookie, while `curl` variants employ `-C -` for continuation, `-L` for redirects, and `-O` for remote filenames. The code includes version-specific base URLs for JDK 8, 9, and 10, along with commented notes on command-line flags.

AI-generated description

Similar vizzes