Skip to content

HanSolo/java-metadata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Release Metadata

Test Update release metadata

The update script in this repository collects a list of currently available JRE/JDK distributions and their metadata to store it as JSON files in the metadata/ directory in this repository.

Additionally the script stores MD5, SHA-1, SHA-256, and SHA-512 checksums of the artifacts which are compatible with md5sum, sha1sum, sha256sum, and sha512sum in the checksums/ directory in this repository.

Supported OpenJDK distributions:

Usage

You can fetch the latest metadata for all releases at the following URL:

https://joschi.github.io/java-metadata/metadata/all.json

Example with cURL (requesting a compressed version which significantly reduces the transfer size):

curl --compressed -O https://joschi.github.io/java-metadata/metadata/all.json

If you want to fetch the checksum manifests for a JRE or JDK artifact, you can download it with the following URL template:

https://joschi.github.io/java-metadata/checksums/{vendor}/{artifact_filename}.{hash_function}
  • vendor: The vendor of the artifact, for example zulu
  • artifact_filename: The original filename of the artifact, for example zulu11.37.17-ca-jre11.0.6-linux_x64.tar.gz
  • hash_algorithm: The hash function you want to use; valid values are md5, sha1, sha256, and sha512

Example with cURL and SHA-256 checksum:

# Download Zulu Community™ JRE 11.37.17 for Linux (x64)
curl -O https://static.azul.com/zulu/bin/zulu11.37.17-ca-jre11.0.6-linux_x64.tar.gz
# Download SHA-256 checksum manifest for Zulu Community™ JRE 11.37.17 for Linux (x64)
curl -O https://joschi.github.io/java-metadata/checksums/zulu/zulu11.37.17-ca-jre11.0.6-linux_x64.tar.gz.sha256
# Verify checksum
sha256sum -c zulu11.37.17-ca-jre11.0.6-linux_x64.tar.gz.sha256

Metadata structure

Field name Description
vendor
filename Filename of the artifact
release_type ca (stable) or ea (early access)
version Version of the JDK/JRE distribution
java_version Java version the artifact is based on
jvm_impl JVM implementation
os Supported operating system
architecture Supported machine architecture
file_type The file extension of the artifact
image_type JRE (jre) or JDK (jdk)
features Features of the distribution
url Full source URL of the artifact
md5 MD5 checksum of the artifact
md5_file Filename of the MD5 checksum file
sha1 SHA-1 checksum of the artifact
sha1_file Filename of the SHA-1 checksum file
sha256 SHA-256 checksum of the artifact
sha256_file Filename of the SHA-256 checksum file
sha512 SHA-512 checksum of the artifact
sha512_file Filename of the SHA-512 checksum file
size Size of the artifact in bytes

Example:

{
  "vendor": "zulu",
  "filename": "zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz",
  "release_type": "ga",
  "version": "8.44.0.13",
  "java_version": "8.0.242",
  "jvm_impl": "hotspot",
  "os": "linux",
  "architecture": "x86_64",
  "file_type": "tar.gz",
  "image_type": "jdk",
  "features": [
    "javafx"
  ],
  "url": "https://static.azul.com/zulu/bin/zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz",
  "md5": "fda058637e054eae280eb8761824d064",
  "md5_file": "zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz.md5",
  "sha1": "f07e67b9773cadaf539e67b4e26957b9d85220b7",
  "sha1_file": "zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz.sha1",
  "sha256": "e35bad183b6309384fd440890b4c7888b30670006a6e10ce3d4fefb40fbefc93",
  "sha256_file": "zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz.sha256",
  "sha512": "2f650295baf38d99794343b04dd2dd81ebeff92fa9c3a8bf110700118d1879e20016c6ff441f4488e87dd1fc733b87836e90ec9ba26184d8288c400e11bc9057",
  "sha512_file": "zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz.sha512",
  "size": 155585453
}

See also the files inside the metadata/ directory.

Disclaimer

This project is in no way affiliated with any of the companies or projects offering and distributing the actual JREs and JDKs.

All respective copyrights and trademarks are theirs.

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%