Recently in the study of JDK source code, the machine is installed "jdk1.7.0_71", the need to download the official "samples and demos", but the government does not provide the old version of the "Samples and demos" Download, how to do it.
After puzzled efforts, finally found a solution on the StackOverflow. We can guess the URL of "Samples and demos" via the JDK URL and download the file.
jdk-8u111 installation File Download address:
Http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-windows-x64.exe
jdk-8u111 "Samples and Demos" File download address:
Http://download.oracle.com/otn-pub/java/jdk/8u111-b14-demos/jdk-8u111-windows-x64-demos.zip
Next we deduce the download address of Jdk-7u71 's samples and demos.
jdk-7u71 installation File Download address:
Http://download.oracle.com/otn/java/jdk/7u71-b14/jdk-7u71-windows-x64.exe
Referring to the derivation logic above, the download address for jdk-7u71 's "Samples and demos" file should be:
Http://download.oracle.com/otn/java/jdk/7u71-b14-demos/jdk-7u71-windows-x64-demos.zip
Access to the above address through the browser, found that the Oracle server does not exist on the file, carefully compare the URL found that "Otn" there are some differences, and then modify the URL again:
Http://download.oracle.com/otn-pub/java/jdk/7u71-b14-demos/jdk-7u71-windows-x64-demos.zip
Access the address through the browser and successfully download the file.
Why did the official web not provide the old version of the JDK "Samples and demos"? The official explanation is roughly as follows:
Why do I have to download jdk-7u71 "Samples and demos"?
Mostly because of the programmer's curiosity ...
Tips: How to download the old version of the JDK on the official Internet, in the latest version of the JDK download page, find "Java Archive" to download. As shown in the following illustration:
Resources
Finding "Samples and demos" for a specific JDK version