Answers to doubts about installing JDK17

When installing JDK on Windows 10, I sometimes encounter some confusion: Why is there no prompt to install JRE after installing JDK 17 using the "jdk-17_windows-x64_bin.exe" installation package**? **In this blog post, we will answer this question in detail.

Common ways to install the JDK

Generally, when installing JDK on a Windows system, you can choose two common file suffixes:

  1. .exe: This is the file suffix for the executable installer. You only need to double-click the file to run the installer, and follow the instructions of the installation wizard to complete the JDK installation.

  2. .msi: This is the file suffix of the Windows Installer installation package. You only need to double-click the file to run the installer, and follow the instructions of the installation wizard to complete the JDK installation.

Choosing the correct file suffix is ​​very important, so make sure to choose one that is compatible with your operating system and processor architecture. Also, it is recommended to download the JDK from the official website or a trustworthy source to ensure the correctness of the installation files.

The installation process of JDK 17

As we all know, starting from JDK 9 and above, Java SE Development Kit (JDK) has included Java Runtime Environment (JRE), and it is no longer necessary to install JRE separately. This means that when you install JDK 17 using the "jdk-17_windows-x64_bin.exe" installation package, you will not be prompted to install the JRE.

JDK 17 includes the components needed to develop Java applications, as well as the JRE runtime environment. This means that after installing JDK 17, you already have a complete Java development and runtime environment without additional installation of JRE.

So when you finish installing JDK 17, you can immediately start developing and running Java code without having to install a JRE or do other configurations separately. This integrated design simplifies the installation process and makes it easier for you to use the JDK to develop and run Java applications.
And automatically configure the system environment, you can directly use

I hope this blog can answer your questions about the lack of JRE installation prompts during the JDK 17 installation process. If you have other questions about JDK installation or Java development, welcome to ask!

Guess you like

Origin blog.csdn.net/java_cpp_/article/details/131414515