Look for Java SE Runtime Environment 5.0 Update 22 (the final public update for this branch).
Oracle provides specific executables for various platforms: Windows: jre-1_5_0_22-windows-i586-p.exe (32-bit). Linux: .bin or .rpm files for different distributions.
The , also known as Java 5.0 , is a legacy version of the Java platform. Released in September 2004, it introduced foundational features like generics , autoboxing , and the enhanced for-loop . While it is now obsolete and superseded by much newer versions, specific legacy applications and older hardware still require this exact version to function correctly. Official Oracle Download Method
If you cannot access the official archive, some third-party repositories host legacy installers. However, these are and may pose security risks. Java Archive Downloads - Java SE 5 | Oracle ASEAN
Accessing these archives requires a free Oracle Account.
Specific .sh installers for SPARC or x86 architectures. Third-Party Alternatives