Public JRE API: How I Automated Oracle JRE Downloads
Published by mkadmin on 6 August 2025
Oracle doesn’t make it easy. If you’ve ever tried automating Java Runtime Environment (JRE) provisioning, you’ve likely hit their shifting URLs, anti-scraping tactics, and opaque download flows. I hit that wall—and built my own workaround.
At mearkats.co.uk, I run a publicly accessible API that delivers clean, version-resolved JRE and JDK download links for major platforms. It’s free to use. No scraping required. But let’s be clear: while the API is open, the code behind it is mine alone. This isn't open source—it's a bespoke solution I built, hardened, and host. You can query it to your hearts content. You can't clone it.
🚀 What You Can Do
With a single GET request, you can:
- 🔗 Retrieve valid Oracle download URLs for Windows, macOS, and Linux
- 🧩 Specify version targets or fetch the latest releases
Whether you’re provisioning servers or embedding Java in your build flow, the API removes friction and restores predictability.
🛠️ Example: Windows Automation in PowerShell
Here’s a taste of how I integrate it into local scripts:
$response = Invoke-RestMethod -Uri "https://www.mearkats.co.uk/api/v1/java/jre/latest"
$latestVersion = $response.version_title
$windows64bitLink = $response.links.windows.offline_x64
Write-Host "Latest Version: $latestVersion"
Write-Host "Windows 64-bit Offline Installer: $windows64bitLink"
No scraping. No guesswork. Just clean installs, every time.
🔐 Why This Matters
Oracle’s download flow is designed for browsers—not automation. And while licensing still applies, my API doesn’t bend rules or bypass protections; it simply exposes direct, public links in a structured, developer-friendly format.
I built it to solve the headaches which come with automating JRE installation enmasse, it’s open to all who value reliability over workaround scripts.