{"record":{"id":"13cf45efd8cdf91f","repo":"SeleniumHQ/selenium","slug":"unsupported-architecture-for-jre-download","errorCode":null,"errorMessage":"Unsupported architecture for JRE download: {}","messagePattern":"Unsupported architecture for JRE download: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"rust/src/jre.rs","lineNumber":301,"sourceCode":"        .unwrap_or_else(default_cache_folder);\n    root.join(\"jre\").join(JRE_MAJOR_VERSION)\n}\n\nfn map_os_to_adoptium(os: &str) -> Result<&'static str, Error> {\n    match os {\n        \"macos\" => Ok(\"mac\"),\n        \"linux\" => Ok(\"linux\"),\n        \"windows\" => Ok(\"windows\"),\n        _ => Err(anyhow!(format!(\"Unsupported OS for JRE download: {}\", os))),\n    }\n}\n\nfn map_arch_to_adoptium(arch: &str) -> Result<&'static str, Error> {\n    match arch {\n        \"x86_64\" => Ok(\"x64\"),\n        \"aarch64\" => Ok(\"aarch64\"),\n        \"x86\" => Ok(\"x32\"),\n        _ => Err(anyhow!(format!(\n            \"Unsupported architecture for JRE download: {}\",\n            arch\n        ))),\n    }\n}\n\nfn find_java_binary(root: &Path) -> Option<PathBuf> {\n    let java_binary = if OS == \"windows\" { \"java.exe\" } else { \"java\" };\n    for entry in WalkDir::new(root).into_iter().flatten() {\n        let path = entry.path();\n        if path.is_file()\n            && path\n                .file_name()\n                .map(|name| name.eq_ignore_ascii_case(java_binary))\n                .unwrap_or(false)\n            && path\n                .parent()\n                .and_then(|parent| parent.file_name())","sourceCodeStart":283,"sourceCodeEnd":319,"githubUrl":"https://github.com/SeleniumHQ/selenium/blob/aa36b38e696a0909e973bdf5e2f9031ffe842c4b/rust/src/jre.rs#L283-L319","documentation":"Error \"Unsupported architecture for JRE download: {}\" thrown in SeleniumHQ/selenium.","triggerScenarios":"Thrown at rust/src/jre.rs:301 when the library encounters an invalid state.","commonSituations":"Occurs when requesting a JRE for a CPU architecture with no published build. Use a supported architecture (x64/aarch64) or install a JRE manually.","solutions":["Run on a supported architecture (x64, x86, or aarch64) for managed JRE download","Install Java manually and ensure it is on PATH so no download is needed"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"aa36b38e696a0909e973bdf5e2f9031ffe842c4b","analyzedAt":"2026-08-14T02:32:32.244Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}