Java programming: Download the "Samples and demos" __ algorithm for the specified JDK version

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.