Oracle maintains an official archive for developers. You need a free Oracle account to download.
set JAVA_HOME=C:\Java\jre1.6.0_45
set PATH=%JAVA_HOME%\bin;%PATH%
java -version
java -jar YourLegacyApp.jar
C:\Java\jre1.6.0_45\bin\java -version
Output should be:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
First, let’s clear up the naming convention. Java 6 is also referred to as Java 1.6. When you see "160", it means Update 160 – a cumulative patch released in the final stages of Java 6’s life. download+java+runtime+environment+160+new
The term "new" in your search keyword is interesting. While JRE 6 update 160 is years old, it represents the newest version of the Java 6 branch. Any version after this (update 161 and above) requires a commercial license from Oracle for business use. Prefer an official archived source: